EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: JeroenNL on November 22, 2014, 04:06:32 AM



Title: set layout split in code
Post by: JeroenNL on November 22, 2014, 04:06:32 AM
Hello,

I'm using a complex layout and would like to turn the panel split property of a given panel (west/north/east etc) on/off in code. Is this possible?

Cheers,
Jeroen


Title: Re: set layout split in code
Post by: jarry on November 22, 2014, 04:57:10 PM
Please try to download the patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4.1-patch.zip. The 'unsplit' and 'split' methods are available from this patch.
Code:
$('#cc').layout('split', 'west');  // split the west panel
$('#cc').layout('unsplit', 'north');  // unsplit the north panel