HTML Code:
<script>
Ext.onReady(function(){
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
var viewport = new Ext.Viewport({
layout:'border',
items:[
new Ext.BoxComponent({ // raw
region:'north',
el: 'north',
height:72,
margins:'5 5 5 5'
}),{
region:'south',
contentEl: 'south',
split:true,
height: 72,
minSize: 72,
maxSize: 200,
collapsible: true,
margins:'0 5 5 5'
}, {
region:'east',
title: 'Help',
collapsible: true,
split:true,
width: 225,
minSize: 175,
maxSize: 400,
layout:'fit',
margins:'0 5 0 0',
items:
new Ext.TabPanel({
border:false,
activeTab:0,
tabPosition:'bottom',
items:[{
html:'<p>This region will provide help to the user.</p>',
title: 'Search',
}]
})
},{ region:'west',
id:'west-panel',
title:'Navigation',
split:true,
width: 200,
minSize: 175,
maxSize: 400,
collapsible: true,
margins:'0 0 0 5',
layout:'accordion',
defaults: {
// applied to each contained panel
bodyStyle: 'padding:5px 10px'
},
layoutConfig:{
animate:true
},
items: [{
contentEl: 'catalog_manager',
title:'Catalog Manager',
border:false,
iconCls:'catalog_manager',
},{
contentEl: 'orders_manager',
title:'Orders Manager',
border:false,
iconCls:'orders_manager'
}]
},
new Ext.TabPanel({
region:'center',
deferredRender:false,
activeTab:0,
items:[{
contentEl:'center_1',
title: 'Dashboard',
closable:true,
autoScroll:true
},{
contentEl:'center_2',
title: 'Web Browser',
autoScroll:true
}]
})
]
});
});
</script>
<body>
<div id="west">
<div id="catalog_manager">
<a href="/page1.html" title="Page 1">Page 1</a>
<a href="/page2.html" title="Page 2">Page 2</a>
</div>
<div id="orders_manager">
<a href="/page3.html" title="Page 3">Page 3</a>
<a href="/page4.html" title="Page 4">Page 4</a>
</div>
</div>
</body>