EasyUI Forum
May 07, 2024, 06:25:22 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: How to set layout panel being closed at initialization?  (Read 7602 times)
kudoof
Newbie
*
Posts: 21


View Profile
« 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!


Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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>
Logged
kudoof
Newbie
*
Posts: 21


View Profile
« Reply #2 on: October 23, 2013, 02:21:03 PM »

Thx. It works but the panel title disappeared after the initialization. 
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!