Eric,
You can do this
var oldReconstructTimeline =
Exhibit.TimelineView.prototype._reconstructTimeline;
Exhibit.TimelineView.prototype._reconstructTimeline = function(newEvents) {
oldReconstructTimeline.call(this, newEvents);
// now do something with this._timeline
};
David
Eric Pugh wrote:
> My last major tweak to our timeline is that by default when we load
> content, it ends at the far right of all the data on the timeline.
> Which has almost no information on it, so the timeline looks kind of
> bare. I wanted to do something like in the Timeline religions example
> (http://code.google.com/p/simile-widgets/source/browse/timeline/trunk/src/webapp/site/examples/religions/religions.html#150
>
> ) with the links being exposed, and have the app after it finishes
> loading scroll to a specific date time. Maybe controlled by a URL
> parameter depending on what page you were on.
>
> I worked through this example
> http://simile.mit.edu/wiki/Controlling_A_Timeline_Within_An_Exhibit
> and while it works, I hate that I am redoing so much of the
> configuration. The declarative method works great for me, and I don't
> want to duplicate all of that in the timelineConfig. Is there any way
> to just grab ahold of the "tl" timeline object directly from the
> declaratively created Timeline?
>
> Eric
>
> Oh, and on the page
> http://simile.mit.edu/wiki/Controlling_A_Timeline_Within_An_Exhibit
> the line about
> bandInfos
> [1].eventPainter.setLayout(bandInfos[0].eventPainter.getLayout()); is
> no longer valid with the latest Timeline/Exhibit code!
>
>
> -----------------------------------------------------
> Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 |
> http://www.opensourceconnections.com
>
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---