Thanks Adrian.
Unfortunately my java scripting knowledge is poor to non-existant so I
guess I was looking for something a little more specific. Lazy I know
but I guess I was hoping that someone else had attempted this and had
a working example.
So I attempted what you suggested but wasn't sure what to put in the
brackets of Timeline.GregorianDateLabeller.apply()
plus I don't know what kind of formatting if wants where you suggested
"your custom formatted date". I tried a few things and always ended
up with a blank timeline.
Anyone out there have any more ideas?
Cheers.
Laura
On Sep 15, 8:21 pm, "Adrien Di Mascio" <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---