EXTJS ——Tabpanel_afterRender
var tabs = new Ext.TabPanel({
renderTo: strspot[a] + '-body',
activeTab: 0,
tabCls: 'tab-class',
items: [{
title: 't1',
html: html ,
afterRender: function () {
}
}, {
title: 't2',
html: '<div id=' + usualldivid + ' class=tab_kid></div>',
afterRender: function () {
}
}],
});
//都没有反应 这该怎么写?
tabs.afterRender = function(){};
tabs/afterRender(function(){});
//数据实时加载
//setTimeout(function () {
// // GetRealTimeDate();
// //}, 200);//2s
// //setInterval(function () {
// // GetRealTimeDate();
// //},3000)
tabCls: 'tab-class',
items: [{
title: '实时数据',
//html: html,
afterRender: function () {
}
}, {
title: '实时曲线' ,
afterRender: function () {
}
//html: '<div id=' + usualldivid + ' class=tab_kid></div>'
}]
});
Ext.create('Ext.container.Viewport', {
layout : 'border',//Border布局
items : [ tabs ]
});
});