-
Notifications
You must be signed in to change notification settings - Fork 0
Timeline
Joao Maio edited this page Nov 20, 2018
·
1 revision
timeline data accessible through timeline.itemsData, items accessible through timeline.itemsData.get(id), where if id is empty, all items are returned.
the wrapper / helper functions implemented in branch timeline-plus, visjs-timeline/main.js are as follows:
| name | use | returns |
|---|---|---|
getTimelineItems (timeline, id) |
lists all timeline items | Array |
updateTimelineItem (timeline, item) |
change an item's properties (or create a new item) -- item requires id field, must be formatted according to timeline spec |
- |
getLiveItems (timeline) |
returns all items whose ended property is not true (false / undefined) |
Array |
addProcess (timeline, group, item) |
add an item with explicit group declaration, does not need to be in timeline spec |