tabpanel 动态获取html的内容

     xtype:"tabpanel",
                activeTab: 0,
                region:"center",
                items:[
                    {title:"面板1",id:"mytab",
                    
                     listeners:
                     {'render':
                     function(f)
                     {Ext.getCmp("mytab").html="<font>afda</font>"
                     }}
                    },
                    {title:"面板2",html:"tab面板2的内容"}
                ]


var p = new Ext.Panel({
    title: ‘My Panel’,
    collapsible:true,
    width:400,
    id:’panel1’,
    html:’<iframe scrolling="auto" frameborder="0" width="100%" height="100%" src="PagingGrid.jsp"></iframe>’
    });

方法:

Ext.getCmp(‘panel1’).body.update(‘<iframe scrolling="auto" frameborder="0" width="100%" height="100%" src="PagingGrid11.jsp"></iframe>’);



其实就不用写
三个参数  'title','tabid' 'htmlStr'
      new Ext.panel{
           title:title,
           id : tabid,
           html:''
         }



你可能感兴趣的:(html,F#,ext)