Hello Nitin,
> I want that in the timeline only the year (and not the full date with
> time) should be displayed for some particular events. Is it possible
> to do so?
Please be a bit more precise... when you write "in the timeline", I
reckon you mean the date display in the event info bubble?
The date format there can be adjusted by creating your custom labeller
or overwriting the labelPrecise function of Timeline.GregorianDateLabeller.
You could write something like the following code in a javascript file
which is included after the timeline files:
Timeline.GregorianDateLabeller.prototype.labelPrecise = function(date) {
date = SimileAjax.DateTime.removeTimeZoneOffset(date, this._timeZone);
return date.getFullYear().toString();
}
I didn't test this, but we're using something similar on
http://www.madeinlocal.com and it works well.
Does this help?
Jonas
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---