Hi,
How can i add icons to all the tabs similar to tine20.org groupware?
Thanks.
Moderator: Developers
GO.mainLayout.onReady(function(){
// Wait 1s after ready
setTimeout(function(){
// List visible tabs
Ext.select(".x-tab-strip.x-tab-strip-top li").each(function(element){
// Convert id to array
var module = (element["id"].split("-"));
// Get last element from array
module = module[module.length - 1];
// List texts in tab
Ext.select(".x-tab-strip-text", true, element["id"]).each(function(tab){
// Set style
tab
.removeClass("go-tab-icon-" + module)
.addClass("go-menu-icon-" + module)
.setStyle({
'padding-left': "20px",
'background-repeat': "no-repeat",
'background-position-y': "center"
});
});
});
}, 1000);
});Users browsing this forum: No registered users and 0 guests