PDA

View Full Version : accordion doubt...



abnervv
22 Dec 2009, 7:41 AM
I'd like to set the accordion

collapsed: false

but It doesn't work at all.... see my code...




id: 'menulateral',
region: 'west',
title: '<center>Menu</center>',
split: true,
collapsible: true,
collapsed :false,
collapseMode: 'mini',
minWidth: 200,
width: 200,
layout: 'accordion',


so, I am forced to do that...but I think there is way better

Ext.getCmp( 'menulateral' ).collapse();

:-(

Thanks guys!

22 Dec 2009, 7:48 AM
Collapsed works on the Panel who's layout is the AccordionLayout.

abnervv
22 Dec 2009, 7:54 AM
yeah, I know...and I'm using this kind of Panel...



minWidth: 200,
width: 200,
layout: 'accordion', <--------------------


but it really doesn't work... dunno why...

22 Dec 2009, 8:16 AM
setting collapsed :false means that that panel will render expanded (default)

abnervv
22 Dec 2009, 8:24 AM
OMG

yes, now it worked...

thanks J.Garcia...

btw I've checked the preview of ur book...
it seems pretty kool..congrats.!

22 Dec 2009, 8:27 AM
Thanks. Working on CH16 and 17, which detail building an extensible application using the framework.

Take a look at http://extjsinaction.com/70/final-application-is-complete-writing-on-the-last-two-chapters-to-commence for a preview of the application i will be walking my readers through developing. :)

These are the classes in the 'reusable layer':
http://tdg-i.com/img/screencasts/2009-12-20_1509.png