CaseInput
CaseInput
|
|
Note
This component was introduced in version |
The CaseInput controller is responsible for setting and retrieving the value of a single field from the case creation form and optionally trigger Case Assist API requests.
Methods
update
Sets the value of the specified field.
Parameters
-
value:
stringThe case input value to set.
-
updatesToFetch:
UpdateFetchOptionsA set of flags dictating whether to fetch case assist data after updating the input value.
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
state
A scoped and simplified part of the headless state that is relevant to the CaseInput controller.
Properties
-
value:
stringThe value of the case input.
Initialize
buildCaseInput
Creates a Case Input controller instance.
Parameters
-
engine:
CaseAssistEngineThe headless engine.
-
props:
CaseInputPropsThe configurable
CaseInputcontroller properties.
Returns CaseInput
CaseInputProps
The configurable CaseInput controller properties.
Properties
-
options:
CaseInputOptions
CaseInputOptions
Properties
-
field:
string
Related types
Unsubscribe
Call signatures
-
(): void;
UpdateFetchOptions
Properties
-
caseClassifications?:
boolean -
documentSuggestions?:
boolean