我的 exts 4 窗口中有一些工具栏
this.tbar = {
xtype: 'toolbar',
items: [
{
id: "btnClearFilter",
itemId: "btnClearFilter",
action: 'delFilter',
disabled: true,
handler: function (btn, e) {
btn.setDisabled(true);
}
},
'-',
{
text: 'Export',
tooltip: 'Export',
disabled: false,
menu : {
items: [{
text: 'Export 1'
, icon: 'Content/Resources/images/Excel-16.png'
, action: 'export'
}]
}
}
]
};
从控制器我可以像这样导致动作 delFilter
'ns-main-win > toolbar button[action=delFilter]': {
click: this.delFilter
},
如何从菜单项中获取操作?