Reputation: 2480
i have a treegrid and 2 plugin like
plugins: [
{
Ext.create('Ext.grid.plugin.CellEditing', {
clicksToEdit: 1
})
},
{
ptype: 'treefilter',
allowParentFolders: true
}
]
If i use one of them that will working well but if i using both i will get error like
How to fix this error thanks.
Upvotes: 0
Views: 507
Reputation: 4405
You are enclosing your Ext.create
in braces {}
. Remove those and you should be fine:
plugins: [
Ext.create('Ext.grid.plugin.CellEditing', {
clicksToEdit: 1
}),
{
ptype: 'treefilter',
allowParentFolders: true
}
]
Upvotes: 1