Earlier, I mentioned that any type of panel widget could be added directly to a layout, just as we had done with the tabs. Let's explore this by adding another widget to our layout—the grid.
As we now have these tabs as part of our layout, let's start by adding a grid panel to one of the tabs. Adding the xtype
config option to the grid config code you created in Chapter 5, will produce a grid that fills one entire tab:
{ region: 'center', xtype: 'tabpanel', activeTab: 0, items: [{ title: 'Movie Grid', xtype: 'gridpanel', store: store, autoExpandColumn: 'title', columns: // add column model //, view: // add grid view spec // },{ title: 'Movie Descriptions', html: 'Movie Info' }] }