Hi,
I´ve managed to do what I want with a little hack in timeline/api/
scripts/original-painter.js in
Timeline.OriginalEventPainter.prototype._paintEventTape
I´ve replaced this
tapeDiv.style.backgroundColor = color; (This color property should be
called backgroundColor because it´s what it is, and there is no way to
change style.color)
with this
var _classname=evt.getClassName();
if(_classname!=null){
if (_classname.indexOf("special_event")!=-1){
tapeDiv.style.color = color;
}else{
if(color != null) {
tapeDiv.style.backgroundColor = color;
}
}
}else{
if(color != null) {
tapeDiv.style.backgroundColor = color;
}
}
This way if there´s some classname sent named 'special_event'xxxx it
will afect the color and not the background. It´s not beautifull but
gets my job done...
Anyway I think your way could be better because I don´t have to change
any code.
I will try it and give some feedback.
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---