jQuery MiniUI
标题:
MINIUI-Layout控件
[打印本页]
作者:
gudicao
时间:
2015-3-10 09:18:46
标题:
MINIUI-Layout控件
页面布局为:
<div id="layout1" class="mini-layout" style="width:600px;height:400px;">
<div title="north" region="north" height="80" >
north
</div>
<div title="center" region="center" >
center
</div>
</div>
我想用js动态更改为
<div id="layout1" class="mini-layout" style="width:600px;height:400px;">
<div title="east" region="east" showCloseButton="true" >
east
</div>
<div title="center" region="center" >
center
</div>
</div>
该怎么调整呢?
作者:
dforce
时间:
2015-3-10 10:11:26
把north的删掉,再添加上east面板
layout.removeRegion("north")
var newRegion={title:"east",region:"east",showCloseButton:true}
layout.addRegion(newRegion)
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2