Jan 26, 2021, 9:16 AM
[OPEN] [#1852] MenuItem inside Accordion
Hi, refering to Issue #1851 on GitHub, can you provide a working example of MenuItem inside Accordion?
We have try the follow, but result in accordion with empty content:
_Sidebar.cshtml
Can you also indicate us the tag to define which panel needs to be expanded by default?
Thank you!
We have try the follow, but result in accordion with empty content:
_Sidebar.cshtml
<ext-container region="West"
cls="sidebar"
width="240"
scrollable="true"
layout="Accordion"
paddingAsString="20">
<items>
<ext-panel title="1">
<items>
<ext-menu id="myMenuTest">
<items>
<ext-menuItem text="11" />
<ext-menuItem text="12" />
<ext-menuItem text="13" />
</items>
</ext-menu>
</items>
</ext-panel>
<ext-panel title="2">
<items>
<ext-menu id="myMenuTest">
<items>
<ext-menuItem text="21" />
<ext-menuItem text="22" />
<ext-menuItem text="23" />
</items>
</ext-menu>
</items>
</ext-panel>
<ext-panel title="3" />
</items>
</ext-container>
After some tests we ended up by using the example in Issue #1851, but you say it was wrong.Can you also indicate us the tag to define which panel needs to be expanded by default?
Thank you!
Last edited by bbros; Jan 26, 2021 at 9:19 AM.