attributes for tab link

greylogic - October 22, 2008 - 19:48
Project:Magic Tabs
Version:5.x-1.2
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,

Thanks for this awesome module. In the current version, The class attribute for the tab links are constructed from title of the tab.

It will be really helpful, if the array returned by callback can configure these attributes. Right now the array has two elements for each tab 'title' and 'content'. is it good to add a third element called 'attribute' (same as the attribute array accepted by l() function)

scenarios where this is needed:

I have a tabset where the tab titles are all images (no text). And i would like to have all the tab title images in a css sprite. In this case, i can leave the title blank and set the attributes. Using css i can assign the images.

thanks
Manny

#1

yhager - October 23, 2008 - 04:53

Thank you, that seems to be a good suggestion, I'll try to include that in.

I am quite busy these days - but hope to have time to add this in within a week or two.

 
 

Drupal is a registered trademark of Dries Buytaert.