效果图:

ExtJS4 嵌套的border layout

 

 

Ext.onReady(function () {
            Ext.widget('panel', {
                layout: 'border',
                width: 600,
                height: 300,
                items: [
                    {
                        title: 'Navigation',
                        region: 'west',
                        margins: '5 0 5 5',
                        collapsible: true, //允许展开 收缩
                        width: 200,
                        split: true
                    },
                    {
                        region: 'center',
                        border: false,
                        layout: 'border',
                        items: [
                            {
                                title: 'North',
                                region: 'north',
                                margin: '5 5 0 0',
                                height: '50%',
                                split: true
                            },
                            {
                                title:'South',
                                region:'center',
                                margins:'0 5 5 0',
                                height: '50%'
                            }
                        ]
                    }
                ],
                renderTo:Ext.getBody()
            });

        });

 

 

 

相关文章:

  • 2021-09-14
  • 2022-03-01
  • 2022-01-02
  • 2021-06-11
  • 2021-04-27
  • 2021-08-11
  • 2021-11-28
猜你喜欢
  • 2021-06-18
  • 2022-02-23
  • 2021-04-10
  • 2021-10-05
  • 2021-04-08
  • 2022-12-23
相关资源
相似解决方案