PDA

View Full Version : Autocollapse / Expand



mallers
14 May 2012, 5:28 PM
Hi all,

I am using a card panel which contains for items (for example, they will have id item1 - item 4).

I am using ptypes which output config is the id of the items in the card layout. I am using auto collpase and expand on these ptypes, however, the card panel is permanently expanded.

Is there somewhere i can programatically expand the card panel? or can i output the card panel to another container which i can expand or collapse?

Cheers,
Steve

14 May 2012, 5:33 PM
First thing: stop using static ids in your application!

Second thing: panel has expand and collapse methods that you can use.

mallers
14 May 2012, 5:53 PM
Many thanks.