From 3970ccce5d7d852339d934148fb7cdde2b1fa077 Mon Sep 17 00:00:00 2001 From: jos Date: Mon, 1 Jun 2015 10:01:41 +0200 Subject: [PATCH] Added a usage example for `getEventPropeties(event)` (see #901) --- docs/timeline/index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/timeline/index.html b/docs/timeline/index.html index 4f92289e..278d9f4c 100644 --- a/docs/timeline/index.html +++ b/docs/timeline/index.html @@ -1001,6 +1001,12 @@ function (option, path) {
  • what (String or null): name of the clicked thing: item, background, axis, group-label, custom-time, or current-time.
  • event (Object): the original click event.
  • + Example usage: +
    +document.getElementById('myTimeline').onclick = function (event) {
    +  var props = timeline.getEventProperties(event)
    +  console.log(props);
    +}