Limit facet item visibility #6572
-
As 'show more' button shows all the facet items by default, I would like to modify the behavior of the Show More button to incrementally increase the number of visible facet items by 50 each time it is clicked, and ensure the Show Less button resets the count back to 12. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The limitation you'll have is that actually all facets are requested in a single call. What you can do in a custom widget is take control of the show more logic yourself, put a high limit and It may also be interesting to look into searchable refinement list to solve the use case of "find all possible facet values" |
Beta Was this translation helpful? Give feedback.
-
Thank you |
Beta Was this translation helpful? Give feedback.
The limitation you'll have is that actually all facets are requested in a single call. What you can do in a custom widget is take control of the show more logic yourself, put a high limit and
slice
the value based on how many should show according to your logic.It may also be interesting to look into searchable refinement list to solve the use case of "find all possible facet values"