IonDen / ion.rangeSlider

jQuery only range slider
http://ionden.com/a/plugins/ion.rangeSlider/en.html
MIT License
2.55k stars 506 forks source link

How to dynamically set values #279

Closed chavika86 closed 9 years ago

chavika86 commented 9 years ago

I have one textbox which allows user to input values.i need to change the slider according to textbox input in runtime .how can i achieve this.

IonDen commented 9 years ago

Hello, @chavika

You may do it that way: http://jsfiddle.net/IonDen/mvrfg2vc/

chavika86 commented 9 years ago

Thanks IonDen..Appreciate the quick response

IonDen commented 9 years ago

No problem.

abhijiy commented 5 years ago

I want to set dynamic min and max value.I have used " <ion-range-slider #sliderElement type="double" [min]="priceRange.min" max="{{priceRange.max}}" from="{{priceRange.min}}" to="{{priceRange.max}}" hide_from_to="true" prefix="{{currencySymbol}}" postfix=".00" (onFinish)="getFilterByRange($event)" >"

Values are set but the slider is not working. Can you please help me?

IonDen commented 5 years ago

@abhijiy, what do you mean by dynamic values?

You want to change them before slider start, or after? If after - here is the demo: http://jsfiddle.net/IonDen/mvrfg2vc/

ed-the-dev commented 2 years ago

I think the demo is broken now, I get this error:

"73:8 Uncaught TypeError: $range.ionRangeSlider is not a function"

Apologies if I'm wrong!

IonDen commented 2 years ago

Demo was outdated. Check it again: https://jsfiddle.net/IonDen/mvrfg2vc/