EasyUI Forum
May 09, 2024, 10:59:08 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Nested accordions  (Read 3368 times)
rezzonico
Full Member
***
Posts: 183


View Profile
« 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
« Last Edit: May 19, 2021, 04:26:05 AM by rezzonico » Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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>
Logged
rezzonico
Full Member
***
Posts: 183


View Profile
« Reply #2 on: May 19, 2021, 10:46:56 PM »

Thanks !

Regards
Miche
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!