Browse Source

Documented current time bar events

css_transitions
josdejong 10 years ago
parent
commit
ef3a52a274
3 changed files with 36 additions and 4 deletions
  1. +8
    -0
      HISTORY.md
  2. +27
    -3
      docs/timeline.html
  3. +1
    -1
      src/timeline/component/CurrentTime.js

+ 8
- 0
HISTORY.md View File

@ -2,6 +2,14 @@ vis.js history
http://visjs.org
## not yet released, version 0.5.0
### Timeline
- items can be dragged
- added events when dragging the custom time bar.
## 2014-01-31, version 0.4.0
### Timeline

+ 27
- 3
docs/timeline.html View File

@ -610,8 +610,8 @@ var options = {
<h2 id="Events">Events</h2>
<p>
Timeline fires events when changing the visible window by dragging, or when
selecting items.
Timeline fires events when changing the visible window by dragging, when
selecting items, and when dragging the custom time bar.
</p>
<p>
@ -674,7 +674,7 @@ timeline.off('select', onSelect);
<tr>
<td>rangechanged</td>
<td>Fired once after the user has dragging the timeline window.
<td>Fired once after the user has dragged the timeline window.
</td>
<td>
<ul>
@ -696,6 +696,30 @@ timeline.off('select', onSelect);
</td>
</tr>
<tr>
<td>timechange</td>
<td>Fired repeatedly when the user is dragging the custom time bar.
Only available when the custom time bar is enabled.
</td>
<td>
<ul>
<li><code>time</code> (Date): the current time.</li>
</ul>
</td>
</tr>
<tr>
<td>timechanged</td>
<td>Fired once after the user has dragged the custom time bar.
Only available when the custom time bar is enabled.
</td>
<td>
<ul>
<li><code>time</code> (Date): the current time.</li>
</ul>
</td>
</tr>
</table>

+ 1
- 1
src/timeline/component/CurrentTime.js View File

@ -56,7 +56,7 @@ CurrentTime.prototype.repaint = function () {
delete this.frame;
}
return;
return false;
}
if (!bar) {

Loading…
Cancel
Save