Ext JS 4 - How to control rowEditor inside controller

*爱你&永不变心* 提交于 2019-11-30 18:20:33

问题


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': {
        // ??
    }
});

回答1:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!