Browse Source

Added docs for option `showCurrentTime`

css_transitions
josdejong 11 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 vis.js history
http://visjs.org 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 ## 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> of item ranges. Must correspond with the css of item ranges.</td>
</tr> </tr>
<tr>
<td>showCurrentTime</td>
<td>boolean</td>
<td>false</td>
<td>Show a vertical bar at the current time.</td>
</tr>
<tr> <tr>
<td>showMajorLabels</td> <td>showMajorLabels</td>
<td>boolean</td> <td>boolean</td>

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

@ -51,7 +51,8 @@
start: now.clone().add('days', -3), start: now.clone().add('days', -3),
end: now.clone().add('days', 7), end: now.clone().add('days', 7),
orientation: 'top', orientation: 'top',
height: '100%'
height: '100%',
showCurrentTime: true
}; };
var timeline = new vis.Timeline(container, items, options); var timeline = new vis.Timeline(container, items, options);

Loading…
Cancel
Save