RefinementList label customization
See original GitHub issueIs your feature request related to a problem? Please describe 🙏
RefinementList component can not receive custom label like ToggleRefinement do. It always use raw ‘attribute’ as label.
Thus, it is more difficult to display a beautiful label in CurrentRefinements
component/connector.
Describe the solution you’d like 🤔
Two possible solutions :
- Add a
label
prop toconnectCurrentRefinements
andCurrentRefinements
and use it ingetMetadata
function. - Add a
translations
prop toconnectCurrentRefinements
andCurrentRefinements
and use it to convert the attribute name to intelligible name.
Describe alternatives you’ve considered ✨
I am going to translate the label in my display component using attribute raw name (ex : owner.nickname) as source.
Additional context
No additional context.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:8 (4 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yep - I thought that’s what @LeComptoirDesPharmacies was asking about too. I am mistaken though.
Anyhow - that definitely answered my question. I was looking for the Panel Widget indeed.
Yes, that’s unfortunately the best option I see for now @LeComptoirDesPharmacies, I more think that @callmekatootie was asking a different question, not related to current refinements?