3

我想了解如何在控制器中控制 rowEditor 插件。

这是 rowEditor 定义:

Ext.define(appName + '.view.department.DepartmentGrid', {

    initComponent: function() {

       this.rowEditor = Ext.create('Ext.grid.plugin.RowEditing', {
          clicksToEdit: 2
       });

    }

}

** 控制器**

this.control({
    'departmentgrid': {
        // ??
    }
});
4

1 回答 1

6

它在文档中:http ://docs.sencha.com/ext-js/4-1/#!/api/Ext.grid.plugin.RowEditing-event-edit

this.control({
    'departmentgrid': {
        edit: this.onDepartmentGridEdit
    }
});
于 2012-08-11T12:37:25.570 回答