当前位置:编程学习 > JS >>

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 ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,