paveltyavin / multirangeslider

Slider for timetable and more
http://paveltyavin.github.io/multirangeslider/
MIT License
20 stars 6 forks source link

How can i add ranges on initializing the multirangeslider? #15

Open ejthan opened 7 years ago

ejthan commented 7 years ago

If I add the ranges after the init (with add) the onAdd- and onChange-event is triggered. This is a problem if i want to show the slider with pre-existing ranges and use the onAdd event if the user wants to add another range.

Thanks for checking this...

ejthan commented 7 years ago

Probably the best solution would be to add the pre-existing ranges to the options

xiangzhaoyu commented 5 years ago

Probably the best solution would be to add the pre-existing ranges to the options

hello, i cant init the pre-existing range, how do you do it? thanks