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;
        }

posted @ 2013-07-31 15:46  yuking  阅读(3294)  评论(0编辑  收藏  举报