Hi Laura,
On Mon, Sep 15, 2008 at 8:45 AM, Laura Dunn <[EMAIL PROTECTED]> wrote:
>
> I am sure that the answer to this question is somewhere in this wiki
> but I have searched and searched to no avail. I am wanting to alter
> the display of the bubble basically. I have save the sources.js file
> and load that up in my html file and have played a little bit with it
> so I know that it is actually loading it.
> My next step is that I want to format the date displayed so that it
> never includes the time. I like the remainder of the date format
> (Day, DD MMM YYYY).
`fillInfoBubble` calls `fillTime` which in turn use the labeller to return
the date as a string. So I think one way to go is to define a custom
labeller and override the `labelPrecise()` method. For example :
bandInfo = Timeline.createBandInfo({ ... your data ...});
bandInfo.labeller = new MyLabeller();
where `MyLabeller` could be defined like :
MyLabeller = function() {
Timeline.GregorianDateLabeller.apply(this, arguments);
}
MyLabeller.labelPrecise = function(date) {
return "your custom formatted date";
}
Never tested this, so it might not work or have some side-effects
on other printed dates.
Cheers,
Adrien.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---