IonDen / ion.rangeSlider

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

min_interval doesn't seem to do anything #700

Open kylebakerio opened 4 years ago

kylebakerio commented 4 years ago

$(sliderDiv).ionRangeSlider({ skin: "big", type: "double", grid: true, keyboard: true, min_interval: 3, min: this.dateToTS(new Date(this.firstDate)), max: this.dateToTS(new Date(this.lastDate)), from: this.dateToTS(new Date(startDate)), to: this.dateToTS(new Date(endDate)), prettify: this.tsToDate, onChange() { runGraphs(); }, onUpdate() { if (setURL) ionSlider.setURLdate(); }, onFinish() { if (setURL) ionSlider.setURLdate(); }, });

I've also tried setting it to 30. Nothing. Documentation is thin, no examples that are working that show it in action I can find.

Am I missing something?

You can see it at covid.kylebaker.io, it's the date slider.

IonDen commented 4 years ago

Hi, @kylebakerio In your case min interval should be also timestamp, like you do with other dates. Value 3 - is just 3ms, and that is nothing.

kylebakerio commented 4 years ago

I have proposed a pull request for the readme documentation. Thanks for this library, it's great. :)