I want to learn how can I controller rowEditor plugin inside controller..
Here's rowEditor definition:
Ext.define(appName + '.view.department.DepartmentGrid', {
initComponent: function() {
this.rowEditor = Ext.create('Ext.grid.plugin.RowEditing', {
clicksToEdit: 2
});
}
}
** Controller**
this.control({
'departmentgrid': {
// ??
}
});
It's in the docs: http://docs.sencha.com/ext-js/4-1/#!/api/Ext.grid.plugin.RowEditing-event-edit
this.control({
'departmentgrid': {
edit: this.onDepartmentGridEdit
}
});
来源:https://stackoverflow.com/questions/11914525/ext-js-4-how-to-control-roweditor-inside-controller