This website works better with JavaScript.
Home
Explore
Help
Sign In
jrtechs
/
jrtechs-vis
mirror of
https://github.com/jrtechs/vis.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
82
Wiki
Activity
Browse Source
Added docs for option `showCurrentTime`
css_transitions
josdejong
11 years ago
parent
424a168f06
commit
f73d862811
3 changed files
with
14 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
HISTORY.md
+7
-0
docs/timeline.html
+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);
Write
Preview
Loading…
Cancel
Save