Browse Source

Added docs for option `showCurrentTime`

css_transitions
josdejong 10 years ago
parent
commit
f73d862811
3 changed files with 14 additions and 1 deletions
  1. +5
    -0
      HISTORY.md
  2. +7
    -0
      docs/timeline.html
  3. +2
    -1
      examples/timeline/02_dataset.html

+ 5
- 0
HISTORY.md View File

@ -1,6 +1,11 @@
vis.js history
http://visjs.org
## <not yet released>, version 0.3.0
- Implemented option `showCurrentTime`, displaying a red, vertical bar at
current time. Thanks fi0dor.
## 2013-09-20, version 0.2.0

+ 7
- 0
docs/timeline.html View File

@ -425,6 +425,13 @@ var options = {
of item ranges. Must correspond with the css of item ranges.</td>
</tr>
<tr>
<td>showCurrentTime</td>
<td>boolean</td>
<td>false</td>
<td>Show a vertical bar at the current time.</td>
</tr>
<tr>
<td>showMajorLabels</td>
<td>boolean</td>

+ 2
- 1
examples/timeline/02_dataset.html View File

@ -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);

Loading…
Cancel
Save