PDA

View Full Version : Can the Accordian collapse/expand direction be changed?



smkkiran
3 Nov 2010, 1:54 AM
Can the Accordian collapse/expand direction be changed................. means the accordion should be bottom of the panel and while expand it should expand towords top......... it seems simple but while working getting tough...............:-?

Condor
3 Nov 2010, 2:04 AM
That's not going to be easy. Accordion layout uses the expand/collapse animation from Ext.Panel.

You would need to extend Ext.Panel to allow it to expand/collapse up or down based on a property.
Next, you would need to extend Ext.layout.Accordion to set the property based on the location of the panel relative to the active item.

smkkiran
3 Nov 2010, 2:12 AM
@ Cndor did u hav any sample code for that :)

Condor
3 Nov 2010, 2:14 AM
No, sorry. You're breaking new ground here.

smkkiran
3 Nov 2010, 2:22 AM
okk..........thanq..:)

agfk
25 Jan 2011, 4:07 PM
Is there a horizontal accordion layout somewhere? I.e. one that expands/collapses left-right instead of up-down?

agfk
25 Apr 2011, 9:06 PM
Bump!

agfk
4 May 2011, 11:40 AM
Seriously, no horizontal accordion? :(