instantsearch
instantsearch copied to clipboard
Add an option for control which Pit value is displayed in the RangeSlider
Do you want to request a feature or report a bug?
Feature.
Feature: What is your use case for such a feature?
Right now we display the values at 0, 50 and 100 percent. In some cases we might want to display more / less values in the pits. We should be able to control where & when the pits are append.
Without control (current)
With control (wanted)
What is the version you are using? Always use the latest one before opening a bug issue.
Right now the generation is computed from an array [0, 50, 100]
. Maybe we should expose this an option or a function that return an array like this one.
Linked to https://github.com/algolia/instantsearch.js/issues/2755
related: https://github.com/algolia/instantsearch.js/pull/2277
@samouss can you check the PR from @Haroenv and especially give your take on this comment.