CheckboxControlValueAccessor class
The accessor for writing a value and listening to changes on a checkbox input element.
Example
<input type="checkbox" ngControl="rememberLogin">
- Implemented types
- Annotations
-
- @Directive(selector: 'input[type=checkbox][ngControl],' 'input[type=checkbox][ngFormControl],' 'input[type=checkbox][ngModel]', providers: [checkboxValueAccessor])
Constructors
- CheckboxControlValueAccessor(HtmlElement element)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onChange
↔ ChangeFunction<
bool> -
getter/setter pairinherited
- onTouched ↔ TouchFunction
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
handleChange(
bool checked) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDisabledChanged(
bool isDisabled) → void -
This function is called when the control status changes to or
from "DISABLED".
override
-
registerOnChange(
ChangeFunction< bool> fn) → void -
Set the function to be called when the control receives a change event.
inherited
-
registerOnTouched(
TouchFunction fn) → void -
Set the function to be called when the control receives a touch event.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
touchHandler(
) → void -
inherited
-
writeValue(
bool value) → void -
Write a new value to the element.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited