Icons to Tabs

Get help from the community here.

Moderator: Developers

Icons to Tabs

Postby Kjmiami23 » Thu Feb 16, 2012 5:40 pm

Hi,

How can i add icons to all the tabs similar to tine20.org groupware?

Thanks.
Kjmiami23
 
Posts: 55
Joined: Wed Feb 15, 2012 6:01 pm

Re: Icons to Tabs

Postby Kjmiami23 » Fri Feb 17, 2012 9:05 am

Hi,

This is what i wanna try and achieve please but adding icons same as this tabs system. it is from tine20.org project similar to group-office

what files am i editing?

thanks.
Attachments
Picture 2.png
Picture 2.png (12.89 KiB) Viewed 300 times
Kjmiami23
 
Posts: 55
Joined: Wed Feb 15, 2012 6:01 pm

Re: Icons to Tabs

Postby Kjmiami23 » Fri Feb 17, 2012 11:53 am

Anyone?

I knows it possible because i have seen it. Just need to know where the file for the tabs are?
Kjmiami23
 
Posts: 55
Joined: Wed Feb 15, 2012 6:01 pm

Re: Icons to Tabs

Postby Kjmiami23 » Sun Feb 19, 2012 4:38 pm

DOES ANYONE KNOW HOW TO DO THIS......
Kjmiami23
 
Posts: 55
Joined: Wed Feb 15, 2012 6:01 pm

Re: Icons to Tabs

Postby eagle » Sun Feb 19, 2012 9:17 pm

Have you looked at theme creation?
http://group-office.com/wiki/Creating_a_theme
eagle
Group-Office Expert
 
Posts: 515
Joined: Tue Jul 14, 2009 2:25 pm
Location: Norway

Re: Icons to Tabs

Postby Kjmiami23 » Mon Feb 20, 2012 9:37 am

Hi,

Ok, so who built it?.....im sure they would know?

Thanks.
Kjmiami23
 
Posts: 55
Joined: Wed Feb 15, 2012 6:01 pm

Re: Icons to Tabs

Postby SirDemonCZE » Mon Feb 20, 2012 5:57 pm

Or you can write own javascript code and paste to Custom CSS and Javascripts module :D :
Code: Select all
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);

});
SirDemonCZE
 
Posts: 128
Joined: Thu Jul 26, 2007 6:30 am

Re: Icons to Tabs

Postby Kjmiami23 » Mon Feb 20, 2012 6:04 pm

Hi,

Thanks,

What would the CSS be, i can get the icons to display in the default theme just the ExtJs is the horrible theme. I copied that into the Javascript section but how would i then create a icon for email and icon for summary etc.....through css?
Kjmiami23
 
Posts: 55
Joined: Wed Feb 15, 2012 6:01 pm

Re: Icons to Tabs

Postby Kjmiami23 » Mon Feb 20, 2012 6:23 pm

I managed to get it working just getting the X icon in the top right corner of tab would be good......any ideas how?

thanks.
Kjmiami23
 
Posts: 55
Joined: Wed Feb 15, 2012 6:01 pm


Return to General help

Who is online

Users browsing this forum: No registered users and 0 guests