You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -219,7 +219,7 @@ List of all the components that are available in [instantSearch](https://github.
219
219
- ✅ [MenuSelect](#-menuselect)
220
220
- ✅ [ToggleRefinement](#-togglerefinement)
221
221
- ✅ [NumericMenu](#-numericmenu)
222
-
-❌[RatingMenu](#-ratingmenu)
222
+
-✅ [RatingMenu](#-ratingmenu)
223
223
- ✅ [ClearRefinements](#-clearrefinements)
224
224
- ✅ [Pagination](#-pagination)
225
225
- ✅ [HitsPerPage](#-hitsperpage)
@@ -798,13 +798,19 @@ The `numericMenu` widget displays a list of numeric filters in a list. Those num
798
798
- ✅ cssClasses: The CSS classes to override.
799
799
- ✅ transformItems: function receiving the items, called before displaying them.
800
800
801
-
### ❌ RatingMenu
801
+
### ✅ RatingMenu
802
802
803
803
[Rating menu references](https://www.algolia.com/doc/api-reference/widgets/rating-menu/js/)
804
804
805
805
The `RatingMenu` widget lets the user refine search results by clicking on stars. The stars are based on the selected attribute.
806
806
807
-
No compatibility because Meilisearch does not support integers as facet and instantSearch uses facets information to showcase the UI elements.
807
+
- ✅ container: The CSS Selector or HTMLElement to insert the widget into. _required_
808
+
- ✅ attribute: The name of the attribute in the document. _required_.
809
+
- ✅ max: The maximum value for the rating. This value is exclusive, which means the number of stars will be the provided value, minus one.
810
+
- ✅ templates: The templates to use for the widget.
811
+
- ✅ cssClasses: The CSS classes to override.
812
+
813
+
Contrary to `instantsearch.js`, To be able to use `RatingMenu` the field containing the rating has to be added in the [`filterableAttributes`](https://docs.meilisearch.com/reference/api/filterable_attributes.html#update-filterable-attributes) setting in your index settings.
0 commit comments