Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Button Extjs unpress按钮_Button_Extjs - Fatal编程技术网

Button Extjs unpress按钮

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({

我有一个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({
        items: [
            // these items will render as dropdown
            // menu items when the arrow is clicked:
            {text: 'Item 1'},
            {text: 'Item 2'}
        ]
    })
})
他的状态将一次按下,我想知道当我想从脚本中取消按下时如何取消按下

谢谢。

呼叫按钮上的
切换()

(死链接)

如果它通过了一个州,它就会 否则变为按下状态 当前状态已切换


一个未按下的拆分按钮是什么样子的?它看起来像他的初始状态。我还发现使用toggle(state,true)很有用。在我的例子中,我想切换状态,但不触发事件操作