我想学习如何控制器内的控制器rowEditor插件..
这是rowEditor定义:
Ext.define(appName + '.view.department.DepartmentGrid', {
initComponent: function() {
this.rowEditor = Ext.create('Ext.grid.plugin.RowEditing', {
clicksToEdit: 2
});
}
}
**控制器**
this.control({
'departmentgrid': {
// ??
}
});
答案 0 :(得分:6)
它位于文档中:http://docs.sencha.com/ext-js/4-1/#!/api/Ext.grid.plugin.RowEditing-event-edit
this.control({
'departmentgrid': {
edit: this.onDepartmentGridEdit
}
});