Replies: 4 comments
-
A much belated +1 -> currently feeling the pain of not having this in the helper :) Would be an awesome addition |
Beta Was this translation helpful? Give feedback.
-
helper.addNumericRefinement('price', 'to', [10, 100]);
helper.addNumericRefinement('price', 'to', [1000, 3000]); This would seem like a more logical API I think. Seems to make sense and a few people have upvoted the issue. Not currently on our plan, but possible |
Beta Was this translation helpful? Give feedback.
-
@Haroenv agreed, that would make sense to me. To help sway you, right now building out a common UX pattern for price ranges (like the mockup) is quite quite painful: This is a pretty common ask I would argue we should support more easily. |
Beta Was this translation helpful? Give feedback.
-
Isn’t this quite easily possible with the PriceRanges component (IS.js, but if a valid usecase, should be brought to the others)? |
Beta Was this translation helpful? Give feedback.
-
When using the API clients it's possible to pass a range of numeric filters.
For instance if I want to retrieve records with a price within 10 and 100, I just need to do.
It would be nice to be able to do the same using the helpers'
addNumericRefinement
method.I was thinking that maybe it could be used that way
Basic example
Advanced example
which would be the same thing as doing
when using the JS API client
Beta Was this translation helpful? Give feedback.
All reactions