diff --git a/docs/timeline/index.html b/docs/timeline/index.html index 2928adcc..f0b78860 100644 --- a/docs/timeline/index.html +++ b/docs/timeline/index.html @@ -262,7 +262,7 @@ var items = [
null
.
If end date is provided, the item is displayed as a range.
@@ -281,7 +281,7 @@ var items = [
new Date(2010,9,23)
.group
which matches the id
@@ -408,7 +408,7 @@ var groups = [
false
data-
attributes to the DOM element of the items.'all'
then each field defined on the timeline item will become a data-
attribute.false
selectable
is true
. See also the callbacks onAdd
, onUpdate
, onMove
, and onRemove
. When editable
is an object, one can enable or disable individual manipulation actions.
See section Editing Items for a detailed explanation.
@@ -520,7 +520,7 @@ var options = {
margin.axis
, margin.item.horizontal
, and margin.item.vertical
.'bottom'
snap
function can be replaced with a custom function, or can be set to null
to disable snapping. The signature of the snap function is:
- function snap(date: Date, scale: string, step: number) : Date | number+
function snap(date: Date, scale: string, step: number) : Date or numberThe parameter
scale
can be can be 'millisecond', 'second', 'minute', 'hour', 'weekday, 'day, 'month, or 'year'. The parameter step
is a number like 1, 2, 4, 5.
'100%'
time
can be a Date, Number, or String, and is new Date()
by default.
@@ -942,18 +942,18 @@ var options = {
focus(id)
.
Available options:
animation: boolean | {duration: number, easingFunction: string}
'easeInOutQuad'
. Available easing functions: "linear"
, "easeInQuad"
, "easeOutQuad"
, "easeInOutQuad"
, "easeInCubic"
, "easeOutCubic"
, "easeInOutCubic"
, "easeInQuart"
, "easeOutQuart"
, "easeInOutQuart"
, "easeInQuint"
, "easeOutQuint"
, "easeInOutQuint"
.
+ animation: boolean or {duration: number, easingFunction: string}
'easeInOutQuad'
. Available easing functions: "linear"
, "easeInQuad"
, "easeOutQuad"
, "easeInOutQuad"
, "easeInCubic"
, "easeOutCubic"
, "easeInOutCubic"
, "easeInQuart"
, "easeOutQuart"
, "easeInOutQuart"
, "easeInQuint"
, "easeOutQuint"
, "easeInOutQuint"
.
fit()
. Available options:
animation: boolean | {duration: number, easingFunction: string}
'easeInOutQuad'
. Available easing functions: "linear"
, "easeInQuad"
, "easeOutQuad"
, "easeInOutQuad"
, "easeInCubic"
, "easeOutCubic"
, "easeInOutCubic"
, "easeInQuart"
, "easeOutQuart"
, "easeInOutQuart"
, "easeInQuint"
, "easeOutQuint"
, "easeInOutQuint"
.animation: boolean or {duration: number, easingFunction: string}
'easeInOutQuad'
. Available easing functions: "linear"
, "easeInQuad"
, "easeOutQuad"
, "easeInOutQuad"
, "easeInCubic"
, "easeOutCubic"
, "easeInOutCubic"
, "easeInQuart"
, "easeOutQuart"
, "easeInOutQuart"
, "easeInQuint"
, "easeOutQuint"
, "easeInOutQuint"
.group
(Number | null): the id of the clicked group.item
(Number | null): the id of the clicked item.group
(Number or null): the id of the clicked group.item
(Number or null): the id of the clicked item.pageX
(Number): absolute horizontal position of the click event.pageY
(Number): absolute vertical position of the click event.x
(Number): relative horizontal position of the click event.y
(Number): relative vertical position of the click event.time
(Date): Date of the clicked event.snappedTime
(Date): Date of the clicked event, snapped to a nice value.what
(String | null): name of the clicked thing: item
, background
, axis
, group-label
, custom-time
, or current-time
.what
(String or null): name of the clicked thing: item
, background
, axis
, group-label
, custom-time
, or current-time
.event
(Object): the original click event.time
can be a Date
, Number
, or String
. Available options:
animation: boolean | {duration: number, easingFunction: string}
'easeInOutQuad'
. Available easing functions: "linear"
, "easeInQuad"
, "easeOutQuad"
, "easeInOutQuad"
, "easeInCubic"
, "easeOutCubic"
, "easeInOutCubic"
, "easeInQuart"
, "easeOutQuart"
, "easeInOutQuart"
, "easeInQuint"
, "easeOutQuint"
, "easeInOutQuint"
.animation: boolean or {duration: number, easingFunction: string}
'easeInOutQuad'
. Available easing functions: "linear"
, "easeInQuad"
, "easeOutQuad"
, "easeInOutQuad"
, "easeInCubic"
, "easeOutCubic"
, "easeInOutCubic"
, "easeInQuart"
, "easeOutQuart"
, "easeInOutQuart"
, "easeInQuint"
, "easeOutQuint"
, "easeInOutQuint"
.focus: boolean
animation: boolean | {duration: number, easingFunction: string}
'easeInOutQuad'
. Only applicable when option focus is true. Available easing functions: "linear"
, "easeInQuad"
, "easeOutQuad"
, "easeInOutQuad"
, "easeInCubic"
, "easeOutCubic"
, "easeInOutCubic"
, "easeInQuart"
, "easeOutQuart"
, "easeInOutQuart"
, "easeInQuint"
, "easeOutQuint"
, "easeInOutQuint"
.animation: boolean or {duration: number, easingFunction: string}
'easeInOutQuad'
. Only applicable when option focus is true. Available easing functions: "linear"
, "easeInQuad"
, "easeOutQuad"
, "easeInOutQuad"
, "easeInCubic"
, "easeOutCubic"
, "easeInOutCubic"
, "easeInQuart"
, "easeOutQuart"
, "easeInOutQuart"
, "easeInQuint"
, "easeOutQuint"
, "easeInOutQuint"
.start
and end
can be a Date
, Number
, or String
. If the parameter value of start
or end
is null, the parameter will be left unchanged. Available options:
animation: boolean | {duration: number, easingFunction: string}
'easeInOutQuad'
. Available easing functions: "linear"
, "easeInQuad"
, "easeOutQuad"
, "easeInOutQuad"
, "easeInCubic"
, "easeOutCubic"
, "easeInOutCubic"
, "easeInQuart"
, "easeOutQuart"
, "easeInOutQuart"
, "easeInQuint"
, "easeOutQuint"
, "easeInOutQuint"
.animation: boolean or {duration: number, easingFunction: string}
'easeInOutQuad'
. Available easing functions: "linear"
, "easeInQuad"
, "easeOutQuad"
, "easeInOutQuad"
, "easeInCubic"
, "easeOutCubic"
, "easeInOutCubic"
, "easeInQuart"
, "easeOutQuart"
, "easeInOutQuart"
, "easeInQuint"
, "easeOutQuint"
, "easeInOutQuint"
.id
(Number | String): custom time bar id.id
(Number or String): custom time bar id.time
(Date): the custom time.id
(Number | String): custom time bar id.id
(Number or String): custom time bar id.time
(Date): the custom time.item
: the item being manipulatedcallback
: a callback function which must be invoked to report back. The callback must be invoked as callback(item | 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 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.