0

我有一个带有 CellEditing 插件的网格。

Ext.define('SCR.view.UserDevice', {

    extend:'Ext.grid.Panel',
    id:'userDevice',
    alias:'widget.userdevice',
    title:"Devices",
    store:'UserDevices',
    sortableColumns:false,
    enableColumnHide:false,
    columns:[
        {
            header:'Device',
            width:200,
            dataIndex:'type'
        },
        {
            header:'Nickname',
            dataIndex:'name',
            width:300,
            editor: {
                xtype: 'textfield',
                allowBlank: false
            }
        },
        {
            header:'Registration Date',
            dataIndex:'registrationDate'
        }
    ],

    plugins: [
        Ext.create('Ext.grid.plugin.CellEditing', {
            clicksToEdit: 1
        })
    ],

    initComponent:function () {
        var me = this;
        me.callParent(arguments);
    }
});

单击“名称”单元格后会显示编辑器。是否可以在输入字段后添加应用按钮?

4

0 回答 0