EasyUI Forum

General Category => General Discussion => Topic started by: sky-t on January 31, 2018, 03:43:07 AM



Title: Hide a layout completely
Post by: sky-t 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


Title: Re: Hide a layout completely
Post by: jarry 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');