Skip to content

Instantly share code, notes, and snippets.

@itissid
Created November 30, 2010 02:02
Show Gist options
  • Save itissid/721004 to your computer and use it in GitHub Desktop.
Save itissid/721004 to your computer and use it in GitHub Desktop.
var sbAccordian = new Ext.Panel({
title: 'Manage Something',
layout:'accordion',
layoutConfig: {
// layout-specific configs go here
titleCollapse: false,
animate: true
//activeOnTop: true
},
items: [{
title: 'Manage pages',
html: '<p>Buttons here...</p>'
},{
title: 'Manage pages',
html: '<p>Buttons here...</p>'
}
]
})
//View port...
var vp = new Ext.Viewport({
layout:'border',
id : 'sbvp',
defaults : {
frame : true,
split : true
},
items:[
{ //Accordian layout embedded in this ...
id:'sbookdata',
width : 330,
//maxWidth : 450,
autoScroll:true,
region:'west',
collapsible: true,
collapseMode : 'mini',
items: sbAccordian
},{
xtype : 'container',
id:'sbookpage',
region:'center',
title: 'Page Display',
items:tabPanel
}
]
});
vp.show();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment