dynamically adjust slide min and max
Is there a way to set the min and max value for a slider in javascript?
In the UI, the values are called "Max. Value" and "Min. Value". Can I set these dynamically?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Is there a way to set the min and max value for a slider in javascript?
In the UI, the values are called "Max. Value" and "Min. Value". Can I set these dynamically?
Hello!
To get current min/max value use:
var sliderMax = Tiggzi("mobilesliderName").attr("max");
var sliderMin = Tiggzi("mobilesliderName").attr("min");
to set new min/max value use:
Tiggzi("mobilesliderName").attr("max", 1000);
Tiggzi("mobilesliderName").attr("min", 500);
Tiggzi("mobilesliderName").slider("refresh");
and here is the short record of described above lines:
Tiggzi("mobilesliderName").attr("max", 1000).attr("min", 500).slider("refresh");