From f9c14259ab40373e5404d0f09301b8f0766c8099 Mon Sep 17 00:00:00 2001 From: josdejong Date: Thu, 30 Jan 2014 14:00:43 +0100 Subject: [PATCH] Splitted function `select` into `getSelection` and `setSelection` --- docs/timeline.html | 20 ++++++++++----- examples/timeline/06_event_listeners.html | 2 +- src/timeline/Timeline.js | 31 +++++++++++++++-------- src/timeline/component/Group.js | 18 ++++++++++--- src/timeline/component/GroupSet.js | 29 ++++++++++++++++++--- src/timeline/component/ItemSet.js | 21 +++++++++------ 6 files changed, 87 insertions(+), 34 deletions(-) diff --git a/docs/timeline.html b/docs/timeline.html index ccf9ce15..e5a56310 100644 --- a/docs/timeline.html +++ b/docs/timeline.html @@ -552,6 +552,12 @@ var options = { + + getSelection() + ids + Get an array with the ids of the currently selected items. + + on(event, callback) none @@ -564,13 +570,6 @@ var options = { Remove an event listener created before via function on(event, callback). - - select([ids]) - ids - Select or deselect items, or get current selection. Returns an array with the ids of the currently selected items. - - - setGroups(groups) none @@ -598,6 +597,13 @@ var options = { + + setSelection([ids]) + none + Select or deselect items. Currently selected items will be unselected. + + + diff --git a/examples/timeline/06_event_listeners.html b/examples/timeline/06_event_listeners.html index 88a14d80..8ea72e1b 100644 --- a/examples/timeline/06_event_listeners.html +++ b/examples/timeline/06_event_listeners.html @@ -20,7 +20,7 @@