.withEvents()

Tinderbox Icon

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):

Up: The Timeline Object
Previous: .create()  Next: Settings defined within Timeline Object (but not param set) 

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

Quicklinks: Attributes | Action Codes | Export Codes | Designators | Date Formats | aTbRef Site Map

[Last updated: 16 May 2012, using v5.11.1]


Search:

Google search aTbRef for:  


Creative Commons Licence

aTbRef by Mark Anderson is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

[See aTbRef CC licence Attribution & Waiver info]

Made with Tinderbox