This version is out of date, covering development from v5.0.0 to v5.12.2. It is maintained here only for inbound reference links from elsewhere.

Jump to the current version of aTbRef.

Tinderbox 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"}
];

Possible relevant notes (via "Similar Notes" feature):


A Tinderbox Reference File : Syntax Library: Tutorials, Wizards and Timelines : Web Timeline customisation : JavaScript Library : The Timeline Object : .withEvents()