StaticFilterSetActions (Deprecated)
StaticFilterSetActions (Deprecated)
|
|
Headless v1 has been deprecated. We recommend using the latest version of the Coveo Headless library. |
The static filter set action creators.
See Dispatch Actions.
Loader Function
loadStaticFilterSetActions
Loads the staticFilterSet reducer and returns possible action creators.
Parameters
-
engine:
SearchEngineThe headless engine.
Returns StaticFilterSetActionCreators: The static filter set action creators.
StaticFilterSetActionCreators
deselectAllStaticFilterValues
Deselects all values of a filter.
Parameters
-
id:
stringThe unique identifier of the static filter (for example,
"abc").
Returns PayloadAction<string>: A dispatchable action.
registerStaticFilter
Registers a static filter.
Parameters
-
payload:
RegisterStaticFilterActionCreatorPayloadThe action creator payload.
Returns PayloadAction<RegisterStaticFilterActionCreatorPayload>: A dispatchable action.
toggleSelectStaticFilterValue
Toggles a static filter value.
Parameters
-
payload:
ToggleSelectStaticFilterValueActionCreatorPayloadThe action creator payload.
Returns PayloadAction<ToggleSelectStaticFilterValueActionCreatorPayload>: A dispatchable action.
Related types
RegisterStaticFilterActionCreatorPayload
Properties
-
id:
stringA unique identifier for the static filter.
-
values:
StaticFilterValue[]The values of the static filter.
StaticFilterValue
Properties
-
caption:
stringA human-readable caption for the expression (for example,
Youtube). -
expression:
stringThe query filter expression to apply when the value is selected (for example,
@filetype=="youtubevideo"). -
state:
'idle' | 'selected'The state of the static filter value.
ToggleSelectStaticFilterValueActionCreatorPayload
Properties
-
id:
stringThe unique identifier for the static filter.
-
value:
StaticFilterValueThe target static filter value.