From ce29f5059f1e3824ea1cfc66016a5f00ac07ffa5 Mon Sep 17 00:00:00 2001 From: jos Date: Wed, 6 May 2015 15:00:17 +0200 Subject: [PATCH] Implemented option `multiselect`, which is false by default --- HISTORY.md | 1 + docs/{timeline.html => old_timeline.html} | 0 docs/timeline/index.html | 12 +++++++++++- examples/timeline/02_manipulation.html | 5 +++++ lib/timeline/component/ItemSet.js | 22 +++++++++++++++------- 5 files changed, 32 insertions(+), 8 deletions(-) rename docs/{timeline.html => old_timeline.html} (100%) diff --git a/HISTORY.md b/HISTORY.md index f9c3314a..cea287db 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -14,6 +14,7 @@ http://visjs.org ### Timeline +- Implemented option `multiselect`, which is false by default. - Added method `setData({groups: groups, items: items})`. - Fixed range items not being displayed smaller than 10 pixels (twice the padding). In order to have overflowing text, one should now apply css style diff --git a/docs/timeline.html b/docs/old_timeline.html similarity index 100% rename from docs/timeline.html rename to docs/old_timeline.html diff --git a/docs/timeline/index.html b/docs/timeline/index.html index 23fdc98b..2928adcc 100644 --- a/docs/timeline/index.html +++ b/docs/timeline/index.html @@ -679,6 +679,16 @@ var options = { + + multiselect + boolean + false + + If true, multiple items can be selected using ctrl+click, shift+click, or by holding items. + Only applicable when option selectable is true. + + + onAdd function @@ -1275,7 +1285,7 @@ timeline.off('select', onSelect); When the Timeline is configured to be editable (both options selectable and editable are true), the user can: