Overview
Angular Forms adapter for [qzSelect]. Value: the selected option's qzSelectOption value, or
null (also what reset() writes). With multiple the value is an array ([] when empty;
null/undefined written by Forms, e.g. reset(), is shown as empty, and the control keeps that
null until the user commits a change). A value without a matching option is kept as written.
Touched fires when focus leaves the control: trigger blur with the popup closed, or a popup
close that does not return focus to the trigger.
Selector
[qzSelect][formControl], [qzSelect][formControlName], [qzSelect][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 |
|
|