fwahlqvist / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

TIMELINE : Add 'classname' attribute to icon #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Enhancement:
When using the 'classname' attribute, it adds an extra class to both the
event's label and tape divs. Is it possible so that it can be applied to an
event's icon too?

The reason I ask is that there is no way to manipulate icons in a given
band - it's either all timeline icons or none. I want certain 'types' of
event to be positioned within a band differently from other bands.

Thanks,

Darren

Original issue reported on code.google.com by dsav...@semi-directory.com on 12 Oct 2008 at 7:28

GoogleCodeExporter commented 9 years ago
Of course, if I had thought about it before I submitted, I could have just used 
a
different theme and defined the track and gap heights there!

Original comment by dsav...@semi-directory.com on 12 Oct 2008 at 7:38

GoogleCodeExporter commented 9 years ago
I added the event's classname to the div that contains the icon. So if an 
event's 
classname attribute is foo, the right css rule would be

div.foo img {/* icon css rules here */}

Note that if you change the space that the icon takes up on the screen using 
css, you 
MUST update the iconWidth and iconHeight in the theme. Else layout won't look 
as 
good.

Checked in rev 1659

Original comment by larryklu...@gmail.com on 4 Nov 2008 at 5:07