I usually do something like this to determine the type of grid:
Ext.define('MyApp.view.MyGrid', { extend: 'Ext.grid.Panel', alias: 'widget.myGrid', store: 'MyStore', columns: [...], }
and then I add it to the container or layout through my xtype, 'myGrid'.
What I want to do is define a custom reusable component that either extends Ext.grid.Panel or accepts the same configurations (e.g. columns), but is actually a container containing a grid and other materials.
Ext.define('MyApp.components.ContainedGrid', { extend: 'Ext.container.Container'
Ideally, this component can be configured as a regular Ext.grid.Panel object, and these configurations should really apply to the grid defined second in the items array.
In other words, something like the following should display a window containing the map layout, where the second map should be a grid, and the columns and storage are provided to the container.
Ext.create('Ext.window.Window', { title: 'hi', layout: 'fit', items: { xtype: 'containedGrid', store: myStore, columns: [...], }, });
Logically, I just want to say that the configurations provided to the container belong to one of its components, but I do not know how to do this. Any thoughts?
Edit: To be brief, what I'm trying to do is create a component that is configured just like a grid, but actually is a container that contains a grid, as well as some other things. This component will be used several times, so I would like to pack it as a reusable component.