EasyUI Forum
September 13, 2025, 07:42:27 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: set layout split in code  (Read 6669 times)
JeroenNL
Newbie
*
Posts: 37


View Profile
« 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
Logged
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #1 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
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!