PDA

View Full Version : Accordion nested into a tabpanel



ptorok
1 Mar 2012, 2:07 AM
Hi,

I'm trying to put together an application GUI, but somehow I'm unable to nest an accordion into any of the tabs of a tabpanel. Tried with designer, manual coding, with separating panel between the two objects, etc.

Am I chasing the blue bird of accordion in a tab or just missing something very basic in the documentation...?

Cheers,
Peter

mitchellsimoens
1 Mar 2012, 11:09 AM
Like this:


new Ext.tab.Panel({
renderTo : document.body,
width : 400,
height : 400,
items : [
{
layout : 'accordion',
title : 'Accordion',
items : [
{
title : 'One',
html : 'one'
},
{
title : 'Two',
html : 'two'
}
]
}
]
});