instantsearch icon indicating copy to clipboard operation
instantsearch copied to clipboard

Add an option for control which Pit value is displayed in the RangeSlider

Open samouss opened this issue 6 years ago • 2 comments

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)

screen shot 2018-03-19 at 16 30 13

With control (wanted)

screen shot 2018-03-19 at 16 30 22

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

samouss avatar Mar 19 '18 15:03 samouss

related: https://github.com/algolia/instantsearch.js/pull/2277

Haroenv avatar Mar 19 '18 15:03 Haroenv

@samouss can you check the PR from @Haroenv and especially give your take on this comment.

bobylito avatar Mar 20 '18 11:03 bobylito