Currently, I am utilizing Dojo for a project where I have implemented pages with the use of dijit/layout/AccordionContainer. These accordion containers typically consist of three or more child containers whose heights dynamically adjust based on the available space within the current page. It is worth mentioning that I created the accordion using a declarative example from the Dojo documentation.
However, there are instances where I require one specific Accordion container to be larger than the others.
For instance, I would like the last container (named "this too") to be larger than the other two...
My approach is straightforward - I followed the documentation's example:
<div class="hook" style="width: 300px;">
<div class="hook" data-dojo-type="dijit/layout/AccordionContainer">
<div data-dojo-type="dijit/layout/ContentPane" title="Heeh, this is a content pane">
Hi!
</div>
<div data-dojo-type="dijit/layout/ContentPane" title="This is as well" selected="true">
Hi how are you?
</div>
<div data-dojo-type="dijit/layout/ContentPane" title="This too">
Hi how are you? .....Great, thx
</div>
</div>
Afterwards, by applying the class hook and adjusting the page height, Dojo ensures all containers are equal in size.
Thank you!