EasyUI Forum
April 25, 2024, 05:09:59 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: Hide a layout completely  (Read 4595 times)
sky-t
Full Member
***
Posts: 145


View Profile
« on: January 31, 2018, 03:43:07 AM »

Hi there,

i can hide a layout if the east and west panels are expanded.
if they are collapsed and then i hide the layout the panel keep visible.

my current code is:
Code:
            var w = $('body').layout('panel','west');
            w.panel('header').hide();

What i have to do also to hide the collapsed panels?


Thank you so much
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: January 31, 2018, 06:56:47 AM »

Please call the 'close' method to close a region panel and then resize the layout again.
Code:
$('#cc').layout('panel','expandWest').panel('close');
$('#cc').layout('resize');
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!