-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create histogram style filter component #98
Comments
Hey @alexluscombe, I've made a prototype for the component, available to check here. Can you take a look to see whether its behaviors meet your need? (note: just for desktop, not support touch for mobile yet). |
@zlatanpham nice! Would be good to be able to set a different colour for the selected region of the histogram. Also would be good to get the mobile drag working if possible also? |
@mish15 you meant color of the highlighted area on the attachment could be changed? |
@zlatanpham yes exactly. I would guess normally the selected area would be coloured and the areas outside would be greyed out. Probably useful to be able to set both though |
@mish15 👍 I'll post the demo once completed. |
Cool perfect! |
Hi @zlatanpham We're happy with the prototype. Can you create a PR for @benhinchley to review? |
Okay |
Create a histogram style filter component. e.g. see price filtering component on Airbnb search results page. Component should include all the functionality from the AIrbnb version.
Component should allow the user to see the distribution of values of a particular field and allow them to narrow results by dragging the handles at the upper and lower ends of the slider. Slider handles should not be allowed to cross over one and other.
As the handles are dragged along the slider the user should be able to see how they are changing the filter values. A Clear button should reset the component to its original state. An apply button should run the search with the new parameters set.
The text was updated successfully, but these errors were encountered: