Overview
Angular Forms adapter for [qzCombobox]. The form value is the committed selection, never the
text in the input: the option value (single) or an array of values (multiple, [] when empty).
Typing alone does not notify Forms; the notification happens when a user action changes the
selection (option chosen/deselected, freeform committed, or a selected value cleared by editing
the text). writeValue(null) (also reset()) clears the selection and the text silently.
Touched fires when focus leaves the control.
Selector
[qzCombobox][formControl], [qzCombobox][formControlName], [qzCombobox][ngModel]
Public methods
writeValue
writeValue(value: unknown): void
| Parameter |
Type |
Optional |
Description |
value |
unknown |
|
|
setDisabledState
setDisabledState(isDisabled: boolean): void
| Parameter |
Type |
Optional |
Description |
isDisabled |
boolean |
|
|
registerOnChange
registerOnChange(fn: (value: unknown) => void): void
| Parameter |
Type |
Optional |
Description |
fn |
(value: V) => void |
|
|
registerOnTouched
registerOnTouched(fn: () => void): void
| Parameter |
Type |
Optional |
Description |
fn |
() => void |
|
|