@ -149,7 +149,7 @@ var data = new vis.DataSet([data] [, options])
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td>convert</td>
<td>type</td>
<td>Object.<String, String></td>
<td>Object.<String, String></td>
<td>none</td>
<td>none</td>
<td>
<td>
@ -227,7 +227,7 @@ var data = new vis.DataSet([data] [, options])
<td>Number[]</td>
<td>Number[]</td>
<td>
<td>
Get ids of all items or of a filtered set of items.
Get ids of all items or of a filtered set of items.
Available <code>options</code> are described in section <ahref="#Data_Selection">Data Selection</a>, except that options <code>fields</code> and <code>convert</code> are not applicable in case of <code>getIds</code>.
Available <code>options</code> are described in section <ahref="#Data_Selection">Data Selection</a>, except that options <code>fields</code> and <code>type</code> are not applicable in case of <code>getIds</code>.
var timeline = new vis.Timeline(container, items, options);
var timeline = new vis.Timeline(container, items, options);
</script>
</script>
</body>
</body>
@ -458,6 +465,16 @@ var options = {
<td>Specifies the minimum height for the Timeline. Can be a number in pixels or a string like "300px".</td>
<td>Specifies the minimum height for the Timeline. Can be a number in pixels or a string like "300px".</td>
</tr>
</tr>
<tr>
<td>moveable</td>
<td>Boolean</td>
<td>true</td>
<td>
Specifies whether the Timeline can be moved and zoomed by dragging the window.
See also option <code>zoomable</code>.
</td>
</tr>
<tr>
<tr>
<td>onAdd</td>
<td>onAdd</td>
<td>Function</td>
<td>Function</td>
@ -533,7 +550,7 @@ var options = {
<tr>
<tr>
<td>showCurrentTime</td>
<td>showCurrentTime</td>
<td>boolean</td>
<td>boolean</td>
<td>false</td>
<td>true</td>
<td>Show a vertical bar at the current time.</td>
<td>Show a vertical bar at the current time.</td>
</tr>
</tr>
@ -599,6 +616,16 @@ var options = {
<td>The width of the timeline in pixels or as a percentage.</td>
<td>The width of the timeline in pixels or as a percentage.</td>
</tr>
</tr>
<tr>
<td>zoomable</td>
<td>Boolean</td>
<td>true</td>
<td>
Specifies whether the Timeline can be zoomed by pinching or scrolling in the window.
Only applicable when option <code>moveable</code> is set <code>true</code>.
</td>
</tr>
<tr>
<tr>
<td>zoomMax</td>
<td>zoomMax</td>
<td>Number</td>
<td>Number</td>
@ -646,6 +673,13 @@ timeline.clear({options: true}); // clear options only
</td>
</td>
</tr>
</tr>
<tr>
<td>destroy()</td>
<td>none</td>
<td>Destroy the Timeline. The timeline is removed from memory. all DOM elements and event listeners are cleaned up.
</td>
</tr>
<tr>
<tr>
<td>fit()</td>
<td>fit()</td>
<td>none</td>
<td>none</td>
@ -895,7 +929,7 @@ var options = {
</p>
</p>
<ul>
<ul>
<li><code>item</code>: the item being manipulated</li>
<li><code>item</code>: the item being manipulated</li>
<li><code>callback</code>: a callback function which must be invoked to report back. The callback must be invoked as <code>callback(item | null)</code>. Here, <code>item</code> can contain changes to the passed item. When invoked as <code>callback(null)</code>, the action will be cancelled.</li>
<li><code>callback</code>: a callback function which must be invoked to report back. The callback must be invoked as <code>callback(item | null)</code>. Here, <code>item</code> 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 <code>callback(null)</code>, the action will be cancelled.</li>
<p>This example shows how to serialize and deserialize JSON data, and load this in the Timeline via a DataSet. Serialization and deserialization is needed when loading or saving data from a server.</p>