Dear Jonas, When I use the code mentioned by you in previous mail, the timeline doesn't show any date at all (no year nothing). I tried to do many things after that but failed. :( Do you think apart from the above code any other thing is also required?
Regards, Nitin On Jun 12, 1:11 pm, Jonas Wagner <[email protected]> wrote: > 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 > onhttp://www.madeinlocal.comand 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 -~----------~----~----~----~------~----~------~--~---
