The CaseField controller is responsible for setting the value and retrieving suggestions for a field from the case creation form and optionally trigger Case Assist API requests.

For example implementations, see the following Coveo Quantic Case Assist components:

interface CaseField {
    state: CaseFieldState;
    subscribe(listener: () => void): Unsubscribe;
    update(
        value: string,
        updatesToFetch?: UpdateCaseFieldFetchOptions,
        autoSelection?: boolean,
    ): void;
}

Hierarchy (View Summary)

Methods

Properties

Methods

Properties

A scoped and simplified part of the headless state that is relevant to the CaseField controller.