EXTJS布局示例(panel,Viewport,TabPanel)(带图)

面板控件panel应用

         new  Ext.Panel({
             title: '面板头部(header)' ,
             tbar : [ '顶端工具栏(top toolbars)' ],
             bbar : [ '底端工具栏(bottom toolbars)' ],
             height:200,
             width:300,
             frame: true ,
             applyTo : 'panel' ,
             bodyStyle: 'background-color:#FFFFFF' ,
             html: '<div>面板体(body)</div>' ,
             tools : [
                 {id: 'toggle' },
                 {id: 'close' },
                 {id: 'maximize' }
             ],
             buttons:[
                 new  Ext.Button({
                     text: '面板底部(footer)'
                 })
             ]
         })
  
Ext.Viewport布局示例
         new  Ext.Viewport({
             title : 'Ext.Viewport示例' ,
             layout: 'border' , //表格布局
             items: [
             {
                 title: 'north Panel' ,
                 html : '上边' ,
                 region: 'north' , //指定子面板所在区域为north
                 height: 100
             },{
                 title: 'West Panel' ,
                 html : '左边' ,
                 region: 'west' , //指定子面板所在区域为west
                 width: 150
             },{
                 title: 'Main Content' ,
                 html : '中间' ,
                 region: 'center' //指定子面板所在区域为center
             }]
         });
 
 
 
 

转载于:https://www.cnblogs.com/rc727512646/archive/2013/03/25/2981205.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值