Hi Mike,
Good news is that your way works too--see the event attribute
classname
Doc:
http://code.google.com/p/simile-widgets/wiki/Timeline_EventSources
Currently, it sets the classname for just the label's div.
My thoughts are:
1) change classname attribute behavior so rather than setting the div
to only be the classname class, have it be *added* as a second
classname to the default classname timeline-event-label
2) also apply the classname to the bar's div but again, add it *in
addition to* the already present class timeline-event-tape.
The above changes will enable you to set css for both the label and
bar, plus additional rules that discriminate between the two.
While an additional level of indirection via the css file has
advantages, it also has disadvantages: an additional level of
indirection, more files to change, more to keep track of, more
complicated documentation, etc. Plus some customizable systems don't
want to generate dynamic css files for dynamic class definitions--
while it can be done, it is yet more work.
And IE still does not support the :before pseudo tag which would be
helpful as an alternative to giving an icon's image url.
I'm fine with expanding the current event classing mechanism as
described above if you think it'd be a positive move.
Re: hoverText -- yeah, I agree with you there. I didn't add it, just
fixed a bug where JSON wasn't reading it. Interestingly, it is
internally used as the "title" attribute. And the event title
attribute is (internally) the 'text' attribute.
I will add a new attribute of caption that will do the same thing as
today's hoverText. (hoverText will remain for backwards
compatibility.)
Regards,
Larry