怎样使用extjs完成页面的布局
1个回答
展开全部
new Ext.Viewport({ //Border
title: "Viewport",
layout: "border",
defaults: {
bodyStyle: "background-color: #FFFFFF;",
frame: true
},
items: [
{ region: "west", width:90, title: 'north', collapsible: true },
{ region: "east", width: 90, title: 'north', collapsible: true },
{ region: "north", height: 100, title:'north' , collapsible:true },
{ region: "center", split: true, border: true, collapsible: true,title:'center' },
{ region: "south", title:"south", split: true, border: true, collapsible: true, height: 100 },
]
});
});
var accordion = Ext.create("Ext.panel.Panel", {
title: "west",
layout: "accordion", //设置为手风琴布局
layoutConfig: {
animate: true
},
width: 250,
minWidth: 90,
region: "west", //设置方位
split: true,
collapsible: true,
items: [
{ title: "嵌套面板一", html: "嵌套面板一", iconCls: "save" },
{ title: "嵌套面板二", html: "嵌套面板二", iconCls: "search" },
{ title: "嵌套面板三", html: "嵌套面板三", iconCls: "back" },
{ title: "嵌套面板四", html: "嵌套面板四", iconCls: "12" }
]
});
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询