EasyUI layout动态设置Split属性

   switch (rowData.ISREGISTERTASK) {
            case 0:
      显示north分割线
                $('#RightContent').layout('panel', 'north').panel('panel').addClass('layout-split-north');
                $('#RightContent').layout('panel', 'north').panel('resize');
      //激活拖动
                $('#RightContent').layout('panel', 'north').panel('panel').resizable('enable');
                break;
            case 1:
      //隐藏north的分割线
                $('#RightContent').layout('panel', 'north').panel('panel').removeClass('layout-split-north');
                $('#RightContent').layout('panel', 'north').panel('resize');     
      //禁用拖动        
                $('#RightContent').layout('panel', 'north').panel('panel').resizable('disable');
                break;
            case 2:
                $('#RightContent').layout('panel', 'north').panel('panel').removeClass('layout-split-north');
                $('#RightContent').layout('panel', 'north').panel('resize');  
                $('#RightContent').layout('panel', 'north').panel('panel').resizable('disable');
                break;
        }

你可能感兴趣的:(easyui)