EasyUI Forum
October 17, 2025, 03:06:39 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: Saving Layout and Accordion States  (Read 9676 times)
hbento
Newbie
*
Posts: 4


View Profile
« on: May 11, 2015, 03:02:47 AM »

Hi

I'm trying to save my layout and accordion state.
Any idea on how to achieve this goal?

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


View Profile Email
« Reply #1 on: May 11, 2015, 08:10:58 AM »

What do the layout and accordion states mean? If you want the 'selected' or the 'collapsed' states, please set the 'selected' and 'collapsed' properties for what panels you want to set.
Logged
hbento
Newbie
*
Posts: 4


View Profile
« Reply #2 on: May 11, 2015, 08:35:22 AM »

Yes, I want those properties and also the size of the panes.

But how do I catch the callback resize events? Or colapse events, ...?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: May 11, 2015, 06:31:14 PM »

The 'onCollapse' and 'onResize' events are available for the panels. The code below shows how to catch the events of the region panel.
Code:
<body class="easyui-layout">
<div data-options="region:'west',split:true,title:'West',width:180,
onCollapse:function(){
// ...
},
onResize:function(){
// ...
}
">west content</div>
<div data-options="region:'center',title:'Center'"></div>
</body>
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!