I'm looking for a way to add a grid panel to my viewport, I tried to use the add() function but this didn't work for me.
Ext.application({ name : 'MyApp',
launch : function() {
Ext.create('Ext.container.Viewport', {
layout: 'border',
items: [{
region: 'north',
html: '<h1 class="x-panel-header">Page Title</h1>',
border: false,
margin: '0 0 5 0'
}, {
region: 'west',
title: 'Navigation',
width: 250,
collapsible: false,
items : {
// I want to add it just there
xtype : 'gridPanel'
}
}, {
region: 'south',
title: 'South Panel',
collapsible: true,
html: 'test test',
split: true,
height: 100,
minHeight: 100
}, {
region: 'east',
title: 'East Panel',
collapsible: true,
split: true,
width: 150
}, {
region: 'center',
xtype: 'tabpanel',
activeTab: 0,
items: {
title: 'test Tab',
html: ''
}
}]
});
}
});
thx in advance,