You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a Shiny input variable of items visible in the timeline. Use visjs method getVisibleItems() to populate a vector of IDs inside a timeline.on(‘rangechanged’… listener.
Something like:
// The range of the window has changes (by dragging or zooming)
timeline.on('rangechanged', function (properties) {
Shiny.onInputChange(
elementId + "_visible",
timeline.getVisibleItems()
);
});
Shiny.onInputChange(
elementId + "_visible",
timeline.getVisibleItems()
);
The text was updated successfully, but these errors were encountered:
padamson
changed the title
Create timeline.getVisibleItems()
Shiny input variable of visible items in timeline
Dec 30, 2016
It should also be returned when the items data gets changed (if an item is added/removed/modified and affects the currently visible items)
I didn't add this functionality originally because I wanted to only expose what I thought are the most useful pieces of data. If others +1 this issue and also find it useful, we'll add it
Create a Shiny input variable of items visible in the timeline. Use visjs method
getVisibleItems()
to populate a vector of IDs inside atimeline.on(‘rangechanged’…
listener.Something like:
The text was updated successfully, but these errors were encountered: