Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Reset Slider #25

Open
pathmanabhankv opened this issue Mar 28, 2018 · 6 comments
Open

How to Reset Slider #25

pathmanabhankv opened this issue Mar 28, 2018 · 6 comments

Comments

@pathmanabhankv
Copy link

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

@KenrySanchez
Copy link

did you find the answer??

@vtkumaresan
Copy link

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.

@floraB90
Copy link

floraB90 commented Jul 2, 2018

any update on this issue?

@jgreenwayread
Copy link

bump, any news on this?

@hassansw
Copy link

@carmadrazo
Copy link

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants