У меня есть кнопка 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'}
]
})
})
Его состояние будет нажиматься одновременно, и я хочу знать, как я могу распаковать его, когда захочу из сценария.
Спасибо.