ITeye博客

Ext布局_BorderLayout

thw · 2011-01-20 15:24 · Ext3.2 · Web前端 · EXT · Markdown

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。