search-ui
search-ui copied to clipboard
boolean facet issue
Hi - would it make sense to differentiate between the facet value name and the label of the facet ? For BooleanFacet component, it's currently the same, say you have the 'In stock' boolean facet, you might want to have a label named 'Status'. Thank you!
Good point. I think the Facet field has a label property, right? So you should be able to customize the facet label.
The problem is that the label is also assigned to the facet name, so there is no way to differentiate.
https://github.com/elastic/search-ui/blob/master/packages/react-search-ui-views/src/BooleanFacet.js#L38
I wonder if the facet name can be added as a new prop.
Ah, I see. That would be better. In the meantime, I would try creating a Custom View.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Is this issue still important to you? If so, please leave a comment and let us know. As always, thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Is this issue still important to you? If so, please leave a comment and let us know. As always, thank you for your contributions.