`
czpae86
  • 浏览: 713985 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

EXT borderLayout图解(初学有用)

阅读更多

    EXT borderLayout图解(初学有用)

 

Ext.onReady(function(){
			var south = new Ext.Panel({
				region : "south",// 布局为south
				margins: '5 5 5 5',	
				collapsible: true,			
				title : "south",
				height : 150,
				frame : true
			});
			
			var north = new Ext.Panel({
				region : "north",// 布局为north
				margins: '5 5 5 5',
				collapsible: true,
				title : "north",
				height : 150,
				frame : true
			});
			
			var west = new Ext.Panel({
				region : "west",// 布局为west
				margins: '0 5 0 5',
				collapsible: true,
				title : "west",
				width : 150,
				frame : true
			});
			
			var east = new Ext.Panel({
				region : "east",// 布局为east
				margins: '0 5 0 5',
				collapsible: true,
				title : "east",
				width : 150,
				frame : true
			});
			
			var center = new Ext.Panel({
				region : "center", //使用borderLayout region : "center"必须要有
				title : "center",
				frame : true
			});
			
			var win = new Ext.Window({
				title : "borderLayout",
				layout : "border", // 定义layout
				width : 650,
				height : 500,
				resizabled : false,
				items : [south,north,east,west,center]
			}).show();
		});

 



 

  • 大小: 45.4 KB
  • 大小: 37.4 KB
分享到:
评论
2 楼 ququzone 2009-07-09  
我改成你这样用json的例子,结果就是不显示
1 楼 nbkangta 2009-03-02  
就是用了数组吧,呵呵,好像没用json对象
不知道LZ对于fromStore和toStore改变这个情况有没有研究过

相关推荐

Global site tag (gtag.js) - Google Analytics