Hi Peter,

I do something similar except that I have a button that scrolls the
timeline to the "first event".  I also have another button to scroll
to the "last event".

The code for the button click handler is:
        .click(function() {
        
swimlaneTL.getBand(1).setMinVisibleDate(swimlaneTL.getBand(0).getMinDate());
        });

A couple of notes.  I am using a "custom timeline constructor" with
this directive in the Exhibit Timeline div:
                                        
ex:timelineConstructor="calendarAppSwimlaneConstructor"
and obviously I have multiple bands displayed in the swimlaneTL
timeline object.

I forget what the default object name is without the custom
constructor (might be simply 'tl').  Also, probably obvious, but if
you only have 1 band, then you would have to change to something like:
tl.getBand(0).setMinVisibleDate(swimlaneTL.getBand(0).getMinDate());

HTH,
-Mark


On Aug 3, 6:56 pm, Peter <[email protected]> wrote:
> Hi there, quick question on using Exhibit in Timeline mode: any way to
> have the initial view be the *beginning* of all events, rather than
> the end?  That is to say, pan over to the first event automatically,
> rather than the most recent?
>
> Thanks!

-- 
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.

Reply via email to