stinger
stinger

Reputation: 4138

ExtJs Grid Multiple Same Plugins

Can we specify multiple SAME plugins(but with different initial config) for one grid? And what behaviour should we expect?

this.gridConf = {
    plugins: [
        Ext.create('Ext.grid.plugin.CellEditing', {clicksToEdit: 1,
            listeners: {
                'beforeedit': function (editor, context, e) {
                   ...
                },
                'edit': function (editor, context, e) {
                   ...                                
                }
            }})
        ,
        Ext.create('Ext.grid.plugin.CellEditing', {clicksToEdit: 2})
    ]
}

Upvotes: 1

Views: 199

Answers (1)

stinger
stinger

Reputation: 4138

Works only first plugin, others are ignored. So i've removed last from this legacy piece of code, and nothing changed.

Upvotes: 1

Related Questions