SelectMultipleControlValueAccessor
The ControlValueAccessor
for writing multi-select control values and listening to multi-select
control changes. The value accessor is used by the FormControlDirective
, FormControlName
, and
NgModel
directives.
class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor implements ControlValueAccessor {}
value
any
The current value.
compareWith
(o1: any, o2: any) => boolean
Tracks the option comparison algorithm for tracking identities when checking for changes.
writeValue
void
Sets the "value" property on one or of more of the select's options.
any
void
registerOnChange
void
Registers a function called when the control value changes and writes an array of the selected options.
(value: any) => any
void
onChange
(_: any) => void
The registered callback function called when a change or input event occurs on the input element.
onTouched
() => void
The registered callback function called when a blur event occurs on the input element.
setProperty
void
Helper method that sets a property on a target element using the current Renderer implementation.
string
any
void
registerOnTouched
void
Registers a function called when the control is touched.
() => void
void
setDisabledState
void
Sets the "disabled" property on the range input element.
boolean
void