jslider icon indicating copy to clipboard operation
jslider copied to clipboard

Add option for minimum range, or example of how to implement it

Open annapowellsmith opened this issue 12 years ago • 2 comments

It would be great to have a minimum range option for range sliders - or if you don't want to add it as an option, then an example of how to implement a minimum range.

By "minimum range", I mean the maximum allowed distance between the two ends of a range slider - and not letting the two ends be the same value.

I've made a JSFiddle here that hopefully explains what I would like, and the way I would ideally implement it if not as an option: http://jsfiddle.net/v3gUg/18/

annapowellsmith avatar Jan 08 '13 17:01 annapowellsmith

OnStatechange can you get hold of old state value and if min range condition is not valid set it to valid state values.

farrukhsubhani avatar Jan 26 '13 16:01 farrukhsubhani

how do you set it? using $("#Slider5").slider("value", somethign, else); doesn't seem to work properly

amritk avatar Jan 30 '13 01:01 amritk