From 3bc3d164dfd86aa06509c3dd896454524ed57e91 Mon Sep 17 00:00:00 2001 From: Yotam Berkowitz Date: Sat, 7 Oct 2017 17:25:18 +0300 Subject: [PATCH] Drag object in to item (#3506) * Make items redraws return queues * Parallel initial items redraw * Seperate read and write actions in items * Parallel all items redraws * Remove comments * Fix linting comments * Fix redraws on actions * Seperate group read and write * Add objects that can be dropped to items * Move example * Fix group get/set group properties * Add documentation * Remove console.log * return Group.js changes * Fix review comments * Fix example * Update drag&drop.html --- docs/timeline/index.html | 9 ++ examples/timeline/other/drag&drop.html | 90 ++++++++++++---- lib/timeline/Core.js | 11 +- lib/timeline/component/ItemSet.js | 136 ++++++++++++++----------- lib/timeline/optionsTimeline.js | 1 + 5 files changed, 163 insertions(+), 84 deletions(-) diff --git a/docs/timeline/index.html b/docs/timeline/index.html index e76267de..f30ddbe2 100644 --- a/docs/timeline/index.html +++ b/docs/timeline/index.html @@ -913,6 +913,14 @@ function (option, path) { + + onDropObjectOnItem + function + none + Callback function triggered when an object containing target:'item' in its drag data is dropped in to a timeline item. + + + onUpdate function @@ -1823,6 +1831,7 @@ var items = new vis.DataSet([