Open pathmanabhankv opened 6 years ago
did you find the answer??
below code will solve prob temp,
resetSlider(elementid) { const guestCountSlider = document.getElementById(elementid); const inputElem = guestCountSlider.getElementsByTagName('input')[0]; jQuery(inputElem).data('ionRangeSlider').reset(); }
pass slider element id as input to reset.
any update on this issue?
bump, any news on this?
Solution Update function https://github.com/PhilippStein/ng2-ion-range-slider/tree/master/example
You can use the methods reset(), update() and destroy() now. You can check them out here: http://ionden.com/a/plugins/ion.rangeSlider/start.html --> Using public methods :)
I tried to reset Slide by change Model values its update but slider not reset. Like Inital slider Min value is 0 and i drag to 15 then i reset model value is 0 again but slider not move Zero . Please share sample code for reset slider