Jan Johannpeter wrote:
> Hello,
> Is it possible to define the center of the Timeline using the
> viewpannel?
> This would be very practical to jump to different periods (e.g. in the
> history of art: antiquity, middle ages...) with different scales and
> colorcoders.
> See the example here:
> http://swiki.hfbk-hamburg.de:8888/seminare/uploads/156/Zeitstrahl_Kunstgeschichte2.1.html
> Thanks a lot for help.
>
Jan,
You could hack this in... First, give your timeline view an id:
<div ex:role="view" ex:viewClass="Timeline" id="the-timeline-view"
...></div>
Then a link to control the timeline should be something like this
<a href="javascript:gotoYear(1500);">1500</a>
where
<script>
function gotoYear(year) {
exhibit.getComponent("the-timeline-view")._timeline.getBand(0).scrollToCenter(new
Date(year));
}
</script>
David
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---