FacetOptionsActions (Deprecated)
FacetOptionsActions (Deprecated)
|
Headless v1 has been deprecated. We recommend using the latest version of the Coveo Headless library. |
The facetOptions action creators.
See Dispatch Actions.
FacetOptionsActionCreators
disableFacet
Disables a facet. In other words, prevents it from filtering results.
Parameters
-
facetId:
string
The unique identifier of the facet (for example, "1").
Returns PayloadAction<string>
: A dispatchable action.
enableFacet
Enables a facet. In other words, undoes the effects of disable
.
Parameters
-
facetId:
string
The unique identifier of the facet (for example, "abcd").
Returns PayloadAction<string>
: A dispatchable action.
updateFacetOptions
Updates options that affect facet reordering. For more information, refer to the documentation on query parameters.
Parameters
-
payload:
UpdateFacetOptionsActionCreatorPayload
The action creator payload.
Returns PayloadAction<UpdateFacetOptionsActionCreatorPayload>
: A dispatchable action.