var viewport = new Ext.Viewport({
layout: 'border',
items: [
new Ext.BoxComponent({
region: 'north',
el: 'north-div',
// tbar: tb,
height: 26
}),
new Ext.tree.TreePanel({
region: 'west',
contentEl: 'west-div',
title: '树列表',
split: true,
width: 200,
minSize: 175,
maxSize: 400,
collapsible: true,
margins: '0 0 0 0',
root: root
}),
{
region: 'center',
layout: 'border',
items: [
new Ext.grid.GridPanel({
region: 'center',
el: 'center-center',
title: '条目列表',
// ds: ds,
// cm: colModel,
autoScroll: true
}),
{
region: 'south',
contentEl: 'center-south',
title: '内容',
split: true,
collapsible: true,
titlebar: true,
height: 200,
minSize: 100,
maxSize: 400,
collapsedTitle: '内容'
}
]
},
new Ext.BoxComponent({
region: 'south',
el: 'south-div',
height: 24
})
]
});
<div id="north-div"><div id='toolbar-div'></div></div>
<div id="west-div"></div>
<div id='center-center'></div>
<div id='center-south'></div>
<div id="south-div">状态栏</div>
posted on 2011-08-24 11:02
王豪 阅读(617)
评论(1) 编辑 收藏 所属分类:
EXT 笔记