EasyUI Forum
October 12, 2025, 08:51:52 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: disable an accordion panel  (Read 7878 times)
roberto
Jr. Member
**
Posts: 88


View Profile Email
« on: February 22, 2017, 08:14:04 PM »

Hi,

I found similar questions but with no answer.
Is it possible?

Tks,
Logged
jarry
Administrator
Hero Member
*****
Posts: 2300


View Profile Email
« Reply #1 on: February 23, 2017, 07:38:25 AM »

If you would like to prevent from doing anything on the panel, you can display a mask over it.
If you would like to prevent from expanding a panel, please return false in the 'onBeforeExpand' event.
Code:
<div class="easyui-accordion" style="width:500px;height:300px;">
<div title="title1"></div>
<div title="title2" data-options="onBeforeExpand:function(){return false}"></div>
<div title="title3"></div>
</div>
Logged
roberto
Jr. Member
**
Posts: 88


View Profile Email
« Reply #2 on: February 24, 2017, 02:23:14 PM »

tks  Smiley
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!