tab切换自动加载listeners

var tab = Ext.create('Ext.tab.Panel', {
reference : 'tabPanel',
border : false,
items : [ tankManageGrid, materialInRecordGrid,materialOutRecordGrid],
listeners :{
'tabchange' : function(tab,newCard,oldCard,opt){
newCard.getStore().load();
}
}
});

猜你喜欢

转载自www.cnblogs.com/chonghaojie/p/10331151.html