This version is out of date, covering development from v6.0.0 to v6.6.5. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

TinderboxSix Icon

.withEvents()

Timleine.withEvents()

This creates the events for the Timeline object. Multiple events (in one or more bands) can be created. Events are passed as an array of event objects.

The withEvents() function has 2 required parameters: start, label.

Optional additional parameters are added as a comma-delimited list of named objects. Each event can named objects. For example:

// theTimeline_timeline is the timeline object already theTimeline_timeline.withEvents([
   [start:"Fri, 4 Mar 2011 15:59:00 +0000", band:0, y:0.516129, label:"v5.8.0"},
   {start:"Fri, 1 Apr 2011 15:59:00 +0000",	band:1, y:0.454094, label:"v5.8.1"}
];


A Tinderbox Reference File : Syntax Library : Web Timeline customisation : JavaScript Library : The Timeline Object : .withEvents()