Extjs unpress按钮

Man*_*era 6 extjs button

我有一个像这样的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'}
        ]
    })
})
Run Code Online (Sandbox Code Playgroud)

他的状态将被压缩,我想知道如果我想从脚本中取消它,我怎么能解压它.

谢谢.

Ate*_*ral 12

呼叫toggle()按钮:

http://www.extjs.com/deploy/ext/docs/output/Ext.SplitButton.html (死链接)

http://dev.sencha.com/playpen/docs/output/Ext.SplitButton.html

如果它通过的状态,则它变为按下状态,否则切换当前状态.