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 に答える