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();
                		        		}
                		        	}
                		        }
                		    });


你可能感兴趣的:(tabpanel)