当前位置: 代码迷 >> Web前端 >> Ext格局_BorderLayout
  详细解决方案

Ext格局_BorderLayout

热度:194   发布时间:2012-10-27 10:42:26.0
Ext布局_BorderLayout

BorderLayout布局的使用

?

??? ??? new Ext.Viewport({
??? ??? ??? layout: 'border',
??? ??? ??? items: [{
??? ??? ??? ??? region:? 'north',
??? ??? ??? ??? id: 'northPanel',
??? ??? ??? ??? contentEl: 'northDiv',
??? ??? ??? ??? border: false,
??? ??? ??? ??? margins:? '0 0 0 0',
??? ??? ??? ??? split:? false
??? ??? ??? },{
??? ??? ??? ??? region: 'west',
??? ??? ??? ??? id: 'westPanel',
??? ??? ??? ??? contentEl: 'westDiv',
??? ??? ??? ??? //border:false,
??? ??? ??? ??? margins:? '0 0 0 0',
??? ??? ??? ??? split:? true,
??? ??? ??? ??? width:? 260,???
??? ??? ??? ??? layout:? 'fit',??? ??? ???
??? ??? ??? ??? items:? westGrid
??? ??? ??? },{
??? ??? ??? ??? region: 'center',
??? ??? ??? ??? id: 'centerPanel',
??? ??? ??? ??? border: false,
??? ??? ??? ??? margins:? '0 0 0 0',
??? ??? ??? ??? layout:? 'border',
??? ??? ??? ??? items: [{
??? ??? ??? ??? ??? region:? 'north',
??? ??? ??? ??? ??? id: 'childNorthPanel',
??? ??? ??? ??? ??? contentEl:? 'childNorthDiv',
??? ??? ??? ??? ??? border: false,
??? ??? ??? ??? ??? margins:? '0 0 0 0',
??? ??? ??? ??? ??? split: false
??? ??? ??? ??? },{
??? ??? ??? ??? ??? region:? 'center',
??? ??? ??? ??? ??? id: 'centerPanel1',
??? ??? ??? ??? ??? contentEl:? 'childCenterDiv',
??? ??? ??? ??? ??? title: '明细设定',
??? ??? ??? ??? ??? //border: false,
??? ??? ??? ??? ??? layout:? 'fit',
??? ??? ??? ??? ??? margins:? '0 0 0 0',
??? ??? ??? ??? ??? height:? '100%',
??? ??? ??? ??? ??? items:? centerGrid
??? ??? ??? ??? }
??? ??? ??? ??? ]
??? ??? ??? }
??? ??? ??? ]
??? ??? });