Border布局:
Ext.onReady(function(){
Ext.QuickTips.init();
Ext.create('Ext.container.Viewport',{ //一般是渲染到viewport中
title: "table布局的面板",
layout:'border',
defaults: {
collapsible: true,//可收起
split: true,
bodyStyle: 'padding:15px'
},
items: [{
title: '上面north',
region: 'north',//位置
height: 100
},{
title: '下面south',
region: 'south',//位置
height: 150,
minSize: 75,
maxSize: 250
},{
title: '左面west',
region:'west',//位置
margins: '5 0 0 0',
width: 175,
minSize: 100,{
title: '中间Content',
collapsible: false,//不可收起
region:'center',//位置
margins: '5 0 0 0'
},{
title: '右面east',
region:'east',//位置
margins: '5 0 5 5'
}]
});
})
效果图:
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。