extjs TabPanel监听激活事件
tabs = new Ext.TabPanel({
renderTo: document.body,
plain:true,
activeTab: 0,
id:'tabpanel001',
frame:true,
width:Ext.getBody().getWidth(),
height:Ext.getBody().getHeight()-40,
items:[
{layout:'fit',width:1000, title: '统计数据表',items:[grid]},
{contentEl:'pic', title: '统计图',autoScroll:true}
],
listeners:{
tabchange:function(tp,p){
if(p.title=='统计数据表'){
autoResize();
}
}
}
});
摘自 yhc13429826359的专栏
补充:web前端 , JavaScript ,