EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: rezzonico on May 19, 2021, 12:33:57 AM



Title: Nested accordions
Post by: rezzonico on May 19, 2021, 12:33:57 AM
Hi

I have two "nested accordions".
The problem is that when I click on "Main Menu", the menu under "AAAAA" is authomatically expanded.
How is it possible to avoid this ?

http://195.144.40.170/jeasyui/AAA6

I can solve the problem by adding the following line:
$('#bb').accordion('unselect', 'AAAAA');

But I have a lot of sub-menus and therefore I am searching for a "better" solution.

Regards
Miche


Title: Re: Nested accordions
Post by: jarry on May 19, 2021, 07:26:38 PM
Please set the 'selected' property value to a non existing panel.
Code:
<div id="bb" class="easyui-accordion" data-options="selected:-1,border:false">
...
</div>


Title: Re: Nested accordions
Post by: rezzonico on May 19, 2021, 10:46:56 PM
Thanks !

Regards
Miche