PDA

View Full Version : Question about accordion layout



rolux
2 Jul 2013, 4:56 AM
Hi,


I create a panel with an accordion layout that contain menus.


When I expand the first menu then I collapse it, the second menu doesn't stay collapsed.
I need to expand and collapse one menu and only one, and maintain others menus collapsed.

Have you some tricks to do that ?

Thank you and sorry for my english :/

skirtle
2 Jul 2013, 5:16 AM
From a quick look through the source it looks like the problem is here:

http://docs.sencha.com/extjs/4.2.1/source/Accordion.html#Ext-layout-container-Accordion-method-onComponentCollapse

Other than a nasty override I can't see an easy way to make that do what you want.