powerange icon indicating copy to clipboard operation
powerange copied to clipboard

How to reset at start value

Open ashishkhare250 opened this issue 10 years ago • 3 comments

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

ashishkhare250 avatar Jun 16 '14 12:06 ashishkhare250

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

sakhil avatar Sep 17 '14 04:09 sakhil

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

ghost avatar Oct 16 '14 11:10 ghost

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

Insider77 avatar Dec 19 '14 18:12 Insider77