EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: kudoof on October 22, 2013, 12:43:16 AM



Title: How to set layout panel being closed at initialization?
Post by: kudoof on October 22, 2013, 12:43:16 AM
I tried something like  $('#cc').layout('collapse','west'). It works but it still shows the panel content for a little bit.   
Using $('#cc').layout('panel','east').panel('collapse','true');  would make the display a little messed up .  Any suggestions?

Another question, where do I set the animation easing option for the layout panel closing/opening and can each panel have different settings?

TIA!




Title: Re: How to set layout panel being closed at initialization?
Post by: stworthy on October 22, 2013, 06:47:39 AM
The 'collapsed' property can be used to collapse a region panel when initialized.
Code:
<div class="easyui-layout" style="width:800px;height:400px">
<div region="west" collapsed="true" style="width:150px"></div>
<div region="center"></div>
</div>


Title: Re: How to set layout panel being closed at initialization?
Post by: kudoof on October 23, 2013, 02:21:03 PM
Thx. It works but the panel title disappeared after the initialization.