From a70edfb1b970fbb4b349b670c820f349aeb39b25 Mon Sep 17 00:00:00 2001
From: Brad Hards
on(event, callback)
none
- Create an event listener. The callback function is invoked every time the event is triggered. Avialable events:
+ rangechange
, rangechanged
, select
. The callback function is invoked as callback(properties)
, where properties
is an object containing event specific properties. See section Events for more information.Create an event listener. The callback function is invoked every time the event is triggered. Available events:
rangechange
, rangechanged
, select
. The callback function is invoked as callback(properties)
, where properties
is an object containing event specific properties. See section Events for more information.
diff --git a/docs/timeline/index.html b/docs/timeline/index.html
index ecc0d74e..c7051a57 100644
--- a/docs/timeline/index.html
+++ b/docs/timeline/index.html
@@ -1211,7 +1211,7 @@ document.getElementById('myTimeline').onclick = function (event) {
on(event, callback)
none
- Create an event listener. The callback function is invoked every time the event is triggered. Avialable events:
+ rangechange
, rangechanged
, select
, itemover
, itemout
. The callback function is invoked as callback(properties)
, where properties
is an object containing event specific properties. See section Events for more information.Create an event listener. The callback function is invoked every time the event is triggered. Available events:
rangechange
, rangechanged
, select
, itemover
, itemout
. The callback function is invoked as callback(properties)
, where properties
is an object containing event specific properties. See section Events for more information.
@@ -1250,7 +1250,7 @@ document.getElementById('myTimeline').onclick = function (event) {
@@ -1574,7 +1574,9 @@ var items = new vis.DataSet([
none
Adjust the time of a custom time bar.
Parameter
time
can be a Date object, numeric timestamp, or ISO date string.
- Parameter id
is the idof the custom time bar, and is undefined
by default.
+ Parameter id
is the id of the custom time bar, and is undefined
by default.
item
: the item being manipulatedcallback
: a callback function which must be invoked to report back. The callback must be invoked as callback(item or null)
. Here, item
can contain changes to the passed item. Parameter `item` typically contains fields `content`, `start`, and optionally `end`. The type of `start` and `end` is determined by the DataSet type configuration and is `Date` by default. When invoked as callback(null)
, the action will be cancelled.callback
: a callback function which must be invoked to report back. The callback must be invoked as callback(item)
or callback(null)
.
+ Here, item
can contain changes to the passed item. Parameter item
typically contains fields `content`, `start`, and optionally `end`. The type of `start`
+ and `end` is determined by the DataSet type configuration and is `Date` by default. When invoked as callback(null)
, the action will be cancelled.@@ -1600,7 +1602,7 @@ var items = new vis.DataSet([
- Timeline supports templates to format item contents. Any template engine (such as handlebars or mustache) can be used, and one can also manually build HTML. In the options, one can provide a template handler. This handler is a function accepting an items data as argument, and outputs formatted HTML: + Timeline supports templates to format item contents. Any template engine (such as handlebars or mustache) can be used, and one can also manually build HTML. In the options, one can provide a template handler. This handler is a function accepting an item's data as argument, and outputs formatted HTML:
var options = { @@ -1697,7 +1699,7 @@ var options = {Create a new locale
- To load a locale into the Timeline not supported by default, one can add a new locale to the optionlocales
: + To load a locale (that is not supported by default) into the Timeline, one can add a new locale to the optionlocales
:var options = { locales: { @@ -1753,7 +1755,7 @@ var options = {Time zone
- By default, the Timeline displays time in local time. To display a Timeline in an other time zone or in UTC, the date constructor can be overloaded via the configuration option
moment
, which by default is the constructor function of moment.js. More information about UTC with moment.js can be found in the docs: http://momentjs.com/docs/#/parsing/utc/. + By default, the Timeline displays time in local time. To display a Timeline in another time zone or in UTC, the date constructor can be overloaded via the configuration optionmoment
, which by default is the constructor function of moment.js. More information about UTC with moment.js can be found in the docs: http://momentjs.com/docs/#/parsing/utc/.@@ -1827,7 +1829,7 @@ var options = {
Days vis-date1
,vis-date2
, ...,vis-date31
- Months + vis-januari
,vis-februari
,vis-march
,vis-april
,vis-may
,vis-june
,vis-july
,vis-august
,vis-september
,vis-october
,vis-november
,vis-december
Months vis-january
,vis-february
,vis-march
,vis-april
,vis-may
,vis-june
,vis-july
,vis-august
,vis-september
,vis-october
,vis-november
,vis-december
Years vis-year2014
,vis-year2015
, ...