Skip to content
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

feat: add update method #76

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ErikMichelson
Copy link

While working with sliders and the bulma-slider package, I wrote some code that updates my sliders directly without firing an input event. The output element was therefore not updated, and while doing so manually might work for a few sliders, it's quite tedious when having a lot of them.

This PR therefore adds a new static method updateSliders that can be called with a list of bulmaSlider instances (as returned by attach()). It issues a fake input event to each of them to force an update of the attached output field.

This new static method can be called with a list of bulmaSlider instances (as returned by attach()). It issues a fake input event to each of them to force an update of the attached output field.
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.

1 participant