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

restore vs. reset #10

Closed
MortenHe opened this issue Sep 13, 2017 · 3 comments
Closed

restore vs. reset #10

MortenHe opened this issue Sep 13, 2017 · 3 comments

Comments

@MortenHe
Copy link

MortenHe commented Sep 13, 2017

IonRangeSliderComponent.prototype.restore = function () { jQuery(this.inputElem).data("ionRangeSlider").restore(); };

has to be

IonRangeSliderComponent.prototype.restore = function () { jQuery(this.inputElem).data("ionRangeSlider").reset(); };

in file \ng2-ion-range-slider\lib\ion-range-slider.component.js

@sharatbaradia
Copy link

How to use reset or update the slider with an initial value from code? I am using Angular 2

@PhilippStein
Copy link
Owner

@koolhuman this has nothing to do with this issue. However use slider.update({from: from, to:to}).
See the example application in this repo: https://github.com/PhilippStein/ng2-ion-range-slider/tree/master/example it shows how to set the slider value on a button click, programatically.

@PhilippStein
Copy link
Owner

@MortenHe, @novitskiy-aleksei this is now fixed with release 2.0.0

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

3 participants