From f73d8628115477434caae5747b01807f3fc9e9c6 Mon Sep 17 00:00:00 2001 From: josdejong Date: Fri, 25 Oct 2013 13:12:19 +0200 Subject: [PATCH] Added docs for option `showCurrentTime` --- HISTORY.md | 5 +++++ docs/timeline.html | 7 +++++++ examples/timeline/02_dataset.html | 3 ++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index 7d1ecb63..0d6a30a2 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,6 +1,11 @@ vis.js history http://visjs.org +## , version 0.3.0 + +- Implemented option `showCurrentTime`, displaying a red, vertical bar at + current time. Thanks fi0dor. + ## 2013-09-20, version 0.2.0 diff --git a/docs/timeline.html b/docs/timeline.html index 4bdd9ee7..525a4baf 100644 --- a/docs/timeline.html +++ b/docs/timeline.html @@ -425,6 +425,13 @@ var options = { of item ranges. Must correspond with the css of item ranges. + + showCurrentTime + boolean + false + Show a vertical bar at the current time. + + showMajorLabels boolean diff --git a/examples/timeline/02_dataset.html b/examples/timeline/02_dataset.html index 36575945..5ce3ab8f 100644 --- a/examples/timeline/02_dataset.html +++ b/examples/timeline/02_dataset.html @@ -51,7 +51,8 @@ start: now.clone().add('days', -3), end: now.clone().add('days', 7), orientation: 'top', - height: '100%' + height: '100%', + showCurrentTime: true }; var timeline = new vis.Timeline(container, items, options);