Ext . , :
Foo = {};
Foo.BarGrid = function(config) {
Foo.BarGrid.superclass.constructor.call(this, config);
}
Ext.extend(Foo.BarGrid, Ext.grid.GridPanel, {
});
var grid = new Foo.BarGrid({});
You can even register your own xtype type and use it instead of newing:
Ext.reg('foobargrid', Foo.BarGrid);
var pane = new Ext.TabPanel({
items: [{xtype: 'foobargrid'}]
});
EDIT . Do not pay attention to the question. Since you obviously know about Ext.extendconfiguration sharing, as suggested by bmoeskau, this might just do the trick for you.
source
share