In ExtJS 5.1, I would like to define a class extending Ext.grid.Panel that sets defaults for columns, specifically the menuDisabled property. I do not want this set for all grids, just this class. In Ext 5 this property was changed to a column specific property and you can set the default in a grid config this way:
columns: {
defaults: { menuDisabled: true },
items: [...]
}
How do I set this in a class definition so that users of this class do not have to set it? I've tried different incantations like:
Ext.define('MyGridPanel', {
extend: 'Ext.grid.Panel',
menuDisabled: true
});
and
Ext.define('MyGridPanel', {
extend: 'Ext.grid.Panel',
defaults: {
columns: {
menuDisabled: true
}
}
});
I was able to get it to change globally for all grids using the answer here, but I want to set it just for my grid class.