Sep 22, 2009, 7:24 PM
adding tabs dynamically
I am using following javascript to add tabs dynamically. It is working perfectly except the icon. icon is not appearibg.
can you give me some clue to resolve this ...
can you give me some clue to resolve this ...
function addTab(tabPanel, id, url,title) {
var tab = tabPanel.getComponent(id);
if (!tab) {
tab = tabPanel.add({
id: id,
title: title,
closable:true,
width: 100,
iconCls: 'ChartOrganisation',
autoLoad: {
showMask: true,
url: url,
mode:'iframe',
maskMsg: 'Loading ...'
}
});
}
tabPanel.setActiveTab(tab);
}