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

Adding a prefix-suffix to a tooltip #1257

Closed rudy1976s closed 1 year ago

rudy1976s commented 1 year ago

It would be very useful to have the possibility of adding some prefix or suffix to the tooltip. Actually it seems the only wai is to add a wNumb but it does work in combination with the classi format ( from to )

Rudy

sarcanon commented 1 year ago

+1 for adding prefix and suffix. I ran into same limitation in wNumb. Ideally, it would allow for conditional formatting.

leongersen commented 1 year ago

Formatting a tooltip with a prefix can be done like this:

{ to: function(value) { return '❤️ ' + value; } }

I've added this example to the documentation: https://refreshless.com/nouislider/number-formatting/#section-tooltips

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.