Opened 10 years ago

Closed 9 years ago

Last modified 7 years ago

#4560 closed feature (wontfix)

Investigate the technical requirements of allowing multiple sections open at once

Reported by: Jörn Zaefferer Owned by:
Priority: trivial Milestone: 1.8
Component: ui.accordion Version: 1.7
Keywords: Cc:
Blocked by: Blocking:

Description

The accordion goes through great lengths restricting it to just one open panel. Having a seperate widget to enable that isn't really desirable.

We need at least investigate if multiple open panels are feasible.

Maybe a base component can implement behaviour of both widgets, and the current accordion would then add its special behaviour on top.

Change History (3)

comment:1 Changed 10 years ago by sesopenko

Multiple open panels is definitely feasible. I inspected the code of _clickHandler() and the logic of opening active panels & closing others is within there.

We could check for an option allowing multiple open panels (maybe multipleOpen).

What option would enable this and we would have to decide how it interacts with the collapsible option. We could allow an extra value for collapsible, "multi" for instance. It could be a little confusing however because it's not technically "multi collapsible" but "multi openable". If it were a new option, it could override collapsible. I don't know what to title the option.

On another note, these are some reasons you may want to allow multiple panes to be visible at a time:

  • Detail panes provide context for one another
  • The vertical height of the accordion area is not fixed
  • Different panels of content may be different heights

(from Designing Web Interfaces by Bill Scott & Theresa Neil. Published by O'Reilly 2009)

We could leave it to the user to disable autoHeight & enable clearStyle in order for the design pattern outlined above to be followed or force it upon them.

I'll start working on this and submit some code for review when I'm finished.

comment:2 Changed 9 years ago by Scott González

Resolution: wontfix
Status: newclosed

This will be handled by a separate plugin.

comment:3 Changed 7 years ago by Scott González

Milestone: 1.next1.8
Note: See TracTickets for help on using tickets.