Button Extjs unpress按钮
我有一个ExtJS按钮,如下所示:Button Extjs unpress按钮,button,extjs,Button,Extjs,我有一个ExtJS按钮,如下所示: new Ext.SplitButton({ text: 'Index', iconCls: 'index', scale: 'large', iconAlign: 'left', cls: 'header-item', handler: leftPanelNav, // handle a click on the button itself menu: new Ext.menu.Menu({
new Ext.SplitButton({
text: 'Index',
iconCls: 'index',
scale: 'large',
iconAlign: 'left',
cls: 'header-item',
handler: leftPanelNav, // handle a click on the button itself
menu: new Ext.menu.Menu({
items: [
// these items will render as dropdown
// menu items when the arrow is clicked:
{text: 'Item 1'},
{text: 'Item 2'}
]
})
})
他的状态将一次按下,我想知道当我想从脚本中取消按下时如何取消按下
谢谢。呼叫按钮上的切换()
:
(死链接)
如果它通过了一个州,它就会
否则变为按下状态
当前状态已切换
一个未按下的拆分按钮是什么样子的?它看起来像他的初始状态。我还发现使用toggle(state,true)很有用。在我的例子中,我想切换状态,但不触发事件操作