You cannot extend the existing Accordion layout class to achieve what you are looking for. If you look at the source code, you will notice that the layout of the Accordion is created by extending FitLayout. Now I quote the FitLayout property in the documentation:
This is the base class for layouts that contain one element that automatically expands to fill the container layout.
The documentation further states:
If the container has several panels, only the first will be displayed.
Now, as the question asks, you need to simultaneously display two panels. This is simply not possible with any layout extending from FitLayout.
Other questions:
There are some design issues with the component that the planner plans to implement;
- What about the space will be displayed at the moment?
- How will the accordion work? When a user tries to access the third panel .. how the currently open panels behave.
Possible Solution:
Now one of the possible solutions is to expand the panel with the vbox layout and to have all the panels in it.
source share