ExtJs4.1布局详解

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'
}]
});
})

效果图:

相关文章

$.AJAX()方法中的PROCESSDATA参数 在使用jQuery的$.ajax()方...
form表单提交的几种方式 表单提交方式一:直接利用form表单提...
文章浏览阅读1.3k次。AJAX的无刷新机制使得在注册系统中对于...
文章浏览阅读1.2k次。 本文将解释如何使用AJAX和JSON分析器在...
文章浏览阅读2.2k次。/************************** 创建XML...
文章浏览阅读3.7k次。在ajax应用中,通常一个页面要同时发送...