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.64k stars 658 forks source link

How to use text instead of numbers in pips #1230

Closed lucaiacono closed 1 year ago

lucaiacono commented 1 year ago

Hi, I would like to be able to use text in pips. Is there a way to do this, as I haven't found one. For instance, one could have a step slider with { fair, good, very good, excellent, ideal}.

If text is not available, I would like to make a request. Regards L

leongersen commented 1 year ago

You can use a formatter to do this:

https://refreshless.com/nouislider/number-formatting/

lucaiacono commented 1 year ago

great thank you!

github-actions[bot] commented 1 year 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.