Wikiki / bulma-slider

Bulma's extension to display sliders
MIT License
48 stars 35 forks source link

feat: add update method #76

Open ErikMichelson opened 1 year ago

ErikMichelson commented 1 year ago

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.