Answer the question
In order to leave comments, you need to log in
How to get the maximum and minimum value and pass it to the input parameters?
There is such a filter .
How can I get the maximum and minimum price values ('.filter__price') and pass these values to the input parameters:
<input type="range" min="мин значение" max="макс значение">
?
Answer the question
In order to leave comments, you need to log in
computed: {
range() {
const prices = this.filterData.map(n => n.price);
return {
min: Math.min(...prices),
max: Math.max(...prices),
};
},
},
<input type="range" v-bind="range">
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question