FieldSuggestionsGenerator
FieldSuggestionsGenerator
In this article
|
|
Note
This component was introduced in version |
Methods
subscribe
Adds a callback that’s invoked on state change.
Parameters
-
listener:
() => voidA callback that’s invoked on state change.
Returns Unsubscribe: A function to remove the listener.
Attributes
fieldSuggestions
The facet controllers created by the facet generator.
state
The state of the field suggestions generator.
Properties
-
displayName:
stringThe facet display name.
-
facetId:
stringThe facet ID.
-
field:
stringThe facet field.
-
type:
'regular' | 'hierarchical'The facet type.
Initialize
buildFieldSuggestionsGenerator
Builds a field suggestions generator controller for a given commerce engine.
Parameters
-
engine:
CommerceEngineThe commerce engine.
Returns FieldSuggestionsGenerator
Related types
Unsubscribe
Call signatures
-
(): void;