Skip to content

Rolling mode API enhancements#1609

Open
bpfoster wants to merge 1 commit into
visjs:masterfrom
bpfoster:rollingMode-api-enhancements
Open

Rolling mode API enhancements#1609
bpfoster wants to merge 1 commit into
visjs:masterfrom
bpfoster:rollingMode-api-enhancements

Conversation

@bpfoster

@bpfoster bpfoster commented Mar 30, 2023

Copy link
Copy Markdown
Contributor

For your consideration... some additions that I think will help make rollingMode even more great.

  • Add explicit enable/disable methods for rolling
  • Add method to check if rollingMode is enabled
  • Fire events when rollingMode is enabled or disabled
  • Allow disabling of the built-in rollingMode button
  • Allow turning off rollingMode via setOptions()

Open to any/all feedback. I've got a use case for these features so I hope they'll be considered useful!

@bpfoster bpfoster force-pushed the rollingMode-api-enhancements branch 3 times, most recently from 934f103 to 405029e Compare March 30, 2023 15:19
@bpfoster bpfoster marked this pull request as ready for review March 30, 2023 15:32
@bpfoster bpfoster force-pushed the rollingMode-api-enhancements branch 3 times, most recently from b793d48 to 9decbd2 Compare April 4, 2023 17:34
mojoaxel
mojoaxel previously approved these changes Dec 3, 2025

@mojoaxel mojoaxel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very clean pull request with docs and tests 🥇

- Add explicit enable/disable methods to timeline
- Add method to check if rollingMode is enabled
- Fire events when rollingMode is enabled or disabled
- Allow disabling of the built-in rollingMode button
@bpfoster

bpfoster commented Mar 6, 2026

Copy link
Copy Markdown
Contributor Author

Hi @mojoaxel. I resolved all conflicts. Please let me know if there's anything else you'd like to see done here. I also have PR #1608 with another rolling mode fix. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dynamically modifying rollingMode with setOptions not working

2 participants