NightCatSama / vue-slider-component

🌡 A highly customized slider component
https://nightcatsama.github.io/vue-slider-component
MIT License
2.42k stars 346 forks source link

How to pass the range value to the @callback function ? #113

Closed nacimux closed 7 years ago

nacimux commented 7 years ago

I use the vue-slider-component to filter a list of product, so i would like to capture the value (range[min,max]) to use it it my filter function. How can i do it ?

UPDATE : when i pass the v-model as @callback parameter i get the value in my function, but if for example i select a range from "0 to 5000" i got "0 4000" so the maxx value is not taken.

NightCatSama commented 7 years ago

@callback can return the value of the range.

example: https://jsfiddle.net/2xy72dod/96/

nacimux commented 7 years ago

Thx for the response 👍