Extjs取消按钮

6

我有一个类似这样的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'}
        ]
    })
})

他的状态会在某个时刻被压缩,我想知道如何从脚本中取消压缩。

谢谢。


未按下的分割按钮长什么样? - Lukman
看起来像是他的初始状态。 - Manny Calavera
1个回答

12

我也发现使用toggle(state, true)很有用。在我的情况下,我想切换状态但不触发事件动作。 - Dai Bok

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接