你好!
我希望从视图中删除此处理程序“处理程序:onEventControler (???)”(它不属于那里)
对于网格视图设置 dockedItems 这个代码:
this.dockedItems = [{
xtype: 'toolbar',
items: [{
xtype: 'newstation'
},{
id: 'add-persone-btn',
xtype: 'button',
itemId: 'add',
text: 'Add',
iconCls: 'icon-add',
handler: onEventControler(???)
}, '-', {
itemId: 'delete',
text: 'Delete',
iconCls: 'icon-delete',
disabled: true,
handler: function(){
var selection = grid.getView().getSelectionModel().getSelection()[0];
if (selection) {
store.remove(selection);
}
}
}]
}]
我也尝试实现this.control,但我无法要求按钮 selectorQuery。
我如何正确尊重架构 mvc extJs4?
谢谢你。