Hi all, still new to timeline, so excuse any obvious mistake...
What I would like to do is add couple of custom fields to the data source
and retrieve them. For instance:
Data source:
{"events":
[
{"isDuration": "true", "description": "my description", "color":
"#ffcc00", "image": "/images/Family-Life.jpg", "link":
"http://www.google.co.uk", "icon": "/static/images/red-ico.png", "end": null,
"title": "event title", "start": "2012,09,30", "textColor": "#777",
*"customfield_1": "ABC", "customfield_2": "DEF"*}, ...{}
]
}
And to retrieve them on showBubble click:
Timeline.OriginalEventPainter.prototype._showBubble = function(x, y, evt) {
var mycustomfield1 = evt.getCustom1();
var mycustomfield1 = evt.getCustom2();
}
Is it possible to add (and how) these get methods?
Thanks in advance
--
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/simile-widgets/-/j8Kk48u3R-QJ.
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.