-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamically modifying rollingMode with setOptions not working #939
Labels
bug
Something isn't working
Comments
bpfoster
added a commit
to bpfoster/vis-timeline
that referenced
this issue
Mar 30, 2023
Turning it on via setOptions() already worked but not the opposite. fixes visjs#939
bpfoster
added a commit
to bpfoster/vis-timeline
that referenced
this issue
Mar 30, 2023
Turning it on via setOptions() already worked but not the opposite. fixes visjs#939
bpfoster
added a commit
to bpfoster/vis-timeline
that referenced
this issue
Mar 30, 2023
Turning it on via setOptions() already worked but not the opposite. fixes visjs#939
bpfoster
added a commit
to bpfoster/vis-timeline
that referenced
this issue
Mar 30, 2023
Turning it on via setOptions() already worked but not the opposite. fixes visjs#939
bpfoster
added a commit
to bpfoster/vis-timeline
that referenced
this issue
Apr 4, 2023
Turning it on via setOptions() already worked but not the opposite. fixes visjs#939
bpfoster
added a commit
to bpfoster/vis-timeline
that referenced
this issue
Apr 4, 2023
Turning it on via setOptions() already worked but not the opposite. fixes visjs#939
bpfoster
added a commit
to bpfoster/vis-timeline
that referenced
this issue
Apr 4, 2023
Turning it on via setOptions() already worked but not the opposite. fixes visjs#939
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using the latest version, 7.4.6.
When the selected date range ends with a date today or later, I want to be in rollingMode because the user experience makes a lot of sense, but if I select a date range in the past, I need to goto that range and display the data for those dates. Using setWindow to those new dates doesn't work, but neither does turning off rolling mode with setOptions, then calling setWindow. I also tried toggleRollingMode and that doesn't seem to work either.
Might be important to state that rollingMode works great when in the original options object, but seems unchangable after that.
I'm using cluster incase that makes a difference:
const options = { rollingMode: { follow: true, offset: 0.98, }, ... }
I want to dynamically turn off rollingMode.
instance.setOptions({ rollingMode: { follow: false, offset: 0.98, }, });
Let me know if theres anything else that would help to know!
Thanks for an incredibly library, this saved me enormous amounts of work, its too bad that both of the react wrappers are outdated and broken.
Cheers,
Adam
The text was updated successfully, but these errors were encountered: