IonDen / ion.rangeSlider

jQuery only range slider
http://ionden.com/a/plugins/ion.rangeSlider/en.html
MIT License
2.55k stars 507 forks source link

can we apply Prettify function & Prettify separator together? #418

Closed aalokm closed 7 years ago

aalokm commented 8 years ago

Hi,

Is it possible to apply both the Prettify_seprator & Prettify custom functions applied in the same slider? I have tried it but no luck as such?

PFA the Fiddle here.

IonDen commented 8 years ago

Hi, nope, but you may re use default prettify code in your prettify function. The default code is this: https://github.com/IonDen/ion.rangeSlider/blob/master/js/ion.rangeSlider.js#L1825

aalokm commented 8 years ago

Hi,

Sorry, I forgot to add the link in my initial comment. The link here. Thank you for confirming it. If we modify the labels directly usign $.number() plugin for static sliders, would it work?

IonDen commented 8 years ago

Inside prettify function you may use any code to transform values as you want. It could be a plugin, why not.