我有一个像这样的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
如果它通过的状态,则它变为按下状态,否则切换当前状态.
| 归档时间: |
|
| 查看次数: |
9566 次 |
| 最近记录: |