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 at start value #10

Open
ashishkhare250 opened this issue Jun 16, 2014 · 3 comments
Open

How to reset at start value #10

ashishkhare250 opened this issue Jun 16, 2014 · 3 comments

Comments

@ashishkhare250
Copy link

Hi..
how can i reset slider value at start value.

@sakhil
Copy link

sakhil commented Sep 17, 2014

I have the same issue , do we have a solution for the same ?

@ghost
Copy link

ghost commented Oct 16, 2014

You could effect the .range-quantity && .range-handle in the jquery

$('FOO-BUTTON_TO_RESET').click(function(){
$('.range-quantity').css({width:0});
$('.range-handle').css({left:0});
}

Its dirty but it will work for just a simple reset

@Insider77
Copy link

I did it like this:
// initialize
var changeInput = document.querySelector('.rangeSlider');
var init = new Powerange(changeInput, { min: 50, max: 150, start: 100, step: 1, hideRange: true });

// and when I need to reset
init.setStart(100);

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