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:
Johan
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:
var tb = new Ext.Toolbar('tb'); tb.add( new Ext.menu.CheckItem({text:'Some text', checkHandler: this.onItemCheck}) );

#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).
![]() |