Code:
Ext.create('Ext.Container', {
fullscreen: true,
layout: {
type : 'vbox',
align : 'stretch'
},
items: [
{
xtype: 'toolbar',
docked: 'top' //use docked not dock
},
{
xtype: 'panel',
//layout: 'fit', //this will only allow one child to be shown, use box or card layout
layout : {
type : 'vbox',
align : 'stretch'
},
flex : 1,
items: [ //typo, was 'item' but should be 'items'
{
xtype: 'panel',
flex: 1,
layout : 'fit', //needed a layout
items: [
{
xtype: 'panel',
docked: 'left', //use docked instead of dock
layout : 'fit', //needed a layout, or set the html to the panel and no children
width : 100, //needed a width
items: [{
html: "blah blah blah"
}]
},
{
xtype: 'panel',
layout : 'fit', //needed a layout, or set the html to the panel and no children
items: [{
html: "blah blah blah"
}]
}
]
},
{
xtype: 'panel',
flex: 1,
layout : 'fit', //needed a layout
items: [
{
xtype: 'panel',
docked: 'left', //use docked instead of dock
layout : 'fit', //needed a layout, or set the html to the panel and no children
width : 100, //needed a width
items: [{
html: "blah blah blah"
}]
},
{
xtype: 'panel',
layout : 'fit', //needed a layout, or set the html to the panel and no children
items: [{
html: "blah blah blah"
}]
}
]
},
{
xtype: 'panel',
flex: 1,
layout : 'fit', //needed a layout
items: [
{
xtype: 'panel',
docked: 'left', //use docked instead of dock
layout : 'fit', //needed a layout, or set the html to the panel and no children
width : 100, //needed a width
items: [{
html: "blah blah blah"
}]
},
{
xtype: 'panel',
layout : 'fit', //needed a layout, or set the html to the panel and no children
items: [{
html: "blah blah blah"
}]
}
]
}
]
},
{
xtype: 'toolbar',
docked: 'bottom' //use docked not dock
}
]
});