The FieldSuggestionsGenerator controller is responsible for generating field suggestions controllers for a given commerce engine.

interface FieldSuggestionsGenerator {
    fieldSuggestions: GeneratedFieldSuggestionsControllers;
    state: FieldSuggestionsFacet[];
    subscribe(listener: () => void): Unsubscribe;
}

Hierarchy (View Summary)

Methods

Properties

Methods

  • Adds a callback that's invoked on state change.

    Parameters

    • listener: () => void

      A callback that's invoked on state change.

    Returns Unsubscribe

    A function to remove the listener.

Properties

The facet controllers created by the facet generator.

The state of the field suggestions generator.