leongersen / noUiSlider

noUiSlider is a lightweight, ARIA-accessible JavaScript range slider with multi-touch and keyboard support. It is fully GPU animated: no reflows, so it is fast; even on older devices. It also fits wonderfully in responsive designs and has no dependencies.
https://refreshless.com/nouislider/
MIT License
5.69k stars 656 forks source link

Updating the connect direction. #1239

Closed iamcarlos94 closed 1 year ago

iamcarlos94 commented 1 year ago

I have a use case where I need the slider's connect bar to switch direction as follows: image image

Right now I'm destroying the slider and creating a new one with either connect: [true, false] or connect: [false, true], but that's being a large headache as there are other dynamic options being set elsewhere.

So my questions is if it'd be worth the effort to pursue adding the ability to update the connect option or just to keep destroying and recreating the slider.

leongersen commented 1 year ago

As this restructures the slider HTML, destroying and recreating is the way to go here.

github-actions[bot] commented 11 months ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.