Reverse the display of facet menus #4818
-
I have an app that is using instantsearch and some of the menus look like this This is okay although the on position looks like this which is taking more space. I want to summarize the facets to look like so The refinement widget code looks like this and this doesn't offer options for direct customizations. How can i customize this widget to only have the checkbox, label text and count similar to the image attached? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You can use the https://www.algolia.com/doc/api-reference/widgets/refinement-list/js/#widget-param-item To completely customise the look of the widget, you can also look at the connector, docs for that are here: https://www.algolia.com/doc/api-reference/widgets/refinement-list/js/#connector |
Beta Was this translation helpful? Give feedback.
-
@Haroenv Can I have this
But the checkbox is not checkable. I attached change event
and that works. |
Beta Was this translation helpful? Give feedback.
You can use the
item
template to display less information in the refinementList, documentation for that is here:https://www.algolia.com/doc/api-reference/widgets/refinement-list/js/#widget-param-item
To completely customise the look of the widget, you can also look at the connector, docs for that are here:
https://www.algolia.com/doc/api-reference/widgets/refinement-list/js/#connector