Code:
Ext.define('spiral.centerpanel', {
extend: 'Ext.Container',
layout: {
type: 'hbox',
align: 'stretch'
},
alias: 'widget.centerpanel',
items: [{
title: 'left',
flex: .5,
resizable: false,
style: {
borderRight: '2px solid #157FCC'
},
collapsible: true,
collapseDirection: 'left',
xtype: 'panel',
layout: {
type: 'vbox',
align: 'stretch'
},
html: 'testing left'
},
{
xtype: 'splitter'
},
{
title: 'center',
flex: 1,
autoScroll: true,
html: "testing center"
},
{
xtype: 'splitter'
},
{
title: 'right',
flex: .5,
autoScroll: true,
resizable: false,
style: {
borderLeft: '2px solid #157FCC'
},
collapsible: true,
collapseDirection: 'right',
xtype: 'panel',
layout: {
type: 'vbox',
align: 'stretch'
},
html: 'testing right'
}
]
});
Ext.onReady(function() {
new Ext.container.Viewport( {
layout: {
type: 'vbox',
align: 'stretch'
},
items: [{
style: {
borderTop: '2px solid #157FCC',
borderBottom: '2px solid #157FCC'
},
html:'top',
height: 60
},
{
xtype: 'centerpanel',
flex: 1
},{
style: {
borderTop: '2px solid #157FCC',
borderBottom: '2px solid #157FCC'
},
html:'bottom',
height: 30
}]
});
});