EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: roberto on February 22, 2017, 08:14:04 PM



Title: disable an accordion panel
Post by: roberto on February 22, 2017, 08:14:04 PM
Hi,

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

Tks,


Title: Re: disable an accordion panel
Post by: jarry 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>


Title: Re: disable an accordion panel
Post by: roberto on February 24, 2017, 02:23:14 PM
tks  :)