From dfb25f9ef3f72afc90c70234d5f7643087539efe Mon Sep 17 00:00:00 2001
From: jos
Name | Type | @@ -485,39 +485,34 @@ var options = { If value is|||
editable | +||||
editable | boolean | Object | false |
If true, the items in the timeline can be manipulated. Only applicable when option selectable is . 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.
|
|
editable.add | +||||
editable.add | boolean | false |
If true, new items can be created by double tapping an empty space in the Timeline. See section Editing Items for a detailed explanation. | |
editable.remove | +||||
editable.remove | boolean | false |
If true, items can be deleted by first selecting them, and then clicking the delete button on the top right of the item. See section Editing Items for a detailed explanation. | |
editable.updateGroup | +||||
editable.updateGroup | boolean | false |
If true, items can be dragged from one group to another. Only applicable when the Timeline has groups. See section Editing Items for a detailed explanation. | |
editable.updateTime | +||||
editable.updateTime | boolean | false |
If true, items can be dragged to another moment in time. See section Editing Items for a detailed explanation. | @@ -611,36 +606,32 @@ var options = {A map with i18n locales. See section Localization for more information. |
margin | +||||
margin | number | Object | Object | When a number, applies the margin to margin.axis , margin.item.horizontal , and margin.item.vertical . |
|
margin.axis | +||||
margin.axis | number | 20 |
The minimal margin in pixels between items and the time axis. | |
margin.item | +||||
margin.item | number | 10 |
The minimal margin in pixels between items in both horizontal and vertical direction. | |
margin.item.horizontal | +||||
margin.item.horizontal | number | 10 |
The minimal horizontal margin in pixels between items. | |
margin.item.vertical | +||||
margin.item.vertical | number | 10 |
The minimal vertical margin in pixels between items. | @@ -742,27 +733,26 @@ var options = {|
orientation | +||||
orientation | String | Object | 'bottom' |
Orientation of the timelines axis and items. When orientation is a string, the value is applied to both items and axis. Can be 'top', 'bottom' (default), or 'both'. | |
orientation.axis | +||||
orientation.axis | String | 'bottom' |
Orientation of the timeline axis: 'top', 'bottom' (default), or 'both'. If orientation is 'bottom', the time axis is drawn at the bottom. When 'top', the axis is drawn on top. When 'both', two axes are drawn, both on top and at the bottom. | |
orientation.item | +||||
orientation.item | String | 'bottom' |
Orientation of the timeline items: 'top' or 'bottom' (default). Determines whether items are aligned to the top or bottom of the Timeline. | |
selectable | boolean | @@ -834,8 +824,14 @@ var options = {A template function used to generate the contents of the items. The function is called by the Timeline with an items data as argument, and must return HTML code as result. When the option template is specified, the items do not need to have a field content . See section Templates for a detailed explanation. |
||
timeAxis.scale | +||||
timeAxis | +Object | +Object |
+ Specify a fixed scale and step size for the time axis. | +|
timeAxis.scale | String | none | Set a fixed scale for the time axis of the Timeline. Choose from 'millisecond' , 'second' , 'minute' , 'hour' , 'weekday' , 'day' , 'month' , 'year' . Example usage:
@@ -844,9 +840,8 @@ var options = {
}
|
|
timeAxis.step | +||||
timeAxis.step | number | 1 |