EasyUI Forum
April 28, 2024, 01:07:14 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Panel Collapse  (Read 11122 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« on: January 03, 2015, 09:53:27 PM »

If I call the collapse() method, the content in the panel disappears but the panel does not collapse.

Code:
$('body #west').panel('collapse');

But If I trigger a click on the collapse button, then the panel does collapse:

Code:
$('body .panel-tool a.layout-button-left').trigger('click');


Logged

-- Licensed User --
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: January 04, 2015, 12:19:00 AM »

Please call layout's 'collapse' method instead.
Code:
$('body').layout('collapse', 'west');
Logged
devnull
Sr. Member
****
Posts: 431


View Profile
« Reply #2 on: January 04, 2015, 12:28:52 AM »

Thanks, following on from that, i see there is an animate option, I have tried all of these but none appear to work:

Code:
$('body').layout('collapse', 'west','animate');
$('body').layout('collapse', 'west',true);
$('body').layout('collapse', 'west','slide');
$('body').layout('collapse', 'west',500);

The panel just collapses immediately with no animations.
Logged

-- Licensed User --
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: January 04, 2015, 01:15:04 AM »

Only the 'slide' animation is supported when collapsing or expanding a region panel.
Logged
finzaiko
Newbie
*
Posts: 44


View Profile
« Reply #4 on: June 30, 2015, 11:47:43 PM »

How can I collapse layout panel onClick, I try like this
Code:
function hideEastPanel(){
$('body').layout('collapse', 'east');
}
found error :
var _346=$.data(_343,"layout").panels;

my layout panel inside IFRAME

Thanks in advance.
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!