Replies: 1 comment 1 reply
-
Hi, prettify function is calling on the fly. So you can move it out and change then you need. Example: function myPrettify(n) {
// do any conditions here
return n;
}
$("#range").ionRangeSlider({
type: "double",
min: 0,
max: 1000,
from: 200,
to: 500,
prettify: myPrettify
}); |
Beta Was this translation helpful? Give feedback.
1 reply
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Hi, I was wondering if it's possible to change the prettify on the slider once it's been initialized?
I have a slider I'm using to filter a datatable by a height range and want the user to be able to change their display between imperial and metric.
I'm assuming I can destroy the existing slider and initialize another one but just curious if there is a way to simply change the prettify function of an existing slider.
Beta Was this translation helpful? Give feedback.
All reactions