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