-
6 Mar 2007 1:22 AM #1
CheckItems in toolbar.
CheckItems in toolbar.
Hi
Is it possible to create a toolbar with a toggle button that have the look as the checkItem.
I want a toolbar without a drop down, with a couple of checkItems. Function as a togglebutton.
I can add the checkItem to the toolbar, but the checkHandler does not work if I don't use them in a drop down.
I'll try do something like:
JohanCode:var tb = new Ext.Toolbar('tb'); tb.add( new Ext.menu.CheckItem({text:'Some text', checkHandler: this.onItemCheck}) );
-
6 Mar 2007 4:06 AM #2
Through css you could do it fairly easily with a normal toggle button. There are css classes that can be modified to make it have the check image when toggled. The class is something like x-btn-pressed (check in button.css for the class).
Similar Threads
-
Border Layout + Toolbar + Scrolling = Non Static Toolbar
By PuritysDisciple in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 5 Feb 2007, 11:41 AM


Reply With Quote