JAVA工具
JAVA使用软件 开发工具
posts - 87,  comments - 9,  trackbacks - 0

var viewport = new Ext.Viewport({

                    layout: 'border',

                    items: [

      new Ext.BoxComponent({

          region: 'north',

          el: 'north-div',

         // tbar: tb,

          height: 26

      }),

      new Ext.tree.TreePanel({

          region: 'west',

          contentEl: 'west-div',

          title: '树列表',

          split: true,

          width: 200,

          minSize: 175,

          maxSize: 400,

          collapsible: true,

          margins: '0 0 0 0',

          root: root

      }),

      {

          region: 'center',

          layout: 'border',

          items: [

                    new Ext.grid.GridPanel({

                        region: 'center',

                        el: 'center-center',

                        title: '条目列表',

                      //  ds: ds,

                       // cm: colModel,

                        autoScroll: true

                    }),

                    {

                        region: 'south',

                        contentEl: 'center-south',

                        title: '内容',

                        split: true,

                        collapsible: true,

                        titlebar: true,

                        height: 200,

                        minSize: 100,

                        maxSize: 400,

                        collapsedTitle: '内容'

                    }

             ]

      },

      new Ext.BoxComponent({

          region: 'south',

          el: 'south-div',

          height: 24

      })

  ]

                });

  <div id="north-div"><div id='toolbar-div'></div></div>

  <div id="west-div"></div>

      <div id='center-center'></div>

      <div id='center-south'></div>

  <div id="south-div">状态栏</div>

 

posted on 2011-08-24 11:02 王豪 阅读(617) 评论(1)  编辑  收藏 所属分类: EXT 笔记

FeedBack:
# re: ext 主页面布局
2014-03-18 20:15 | yangyi
123467890dsudsju  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航:
 

常用链接

留言簿

随笔分类

随笔档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜