MaterialInputDefaultValueAccessor class

ControlValueAccessor for MaterialInputComponent that updates on keypress.

Note: This is less accessible since any errors that are produced by the input are shown immediately which is distracting when using a screen reader. instead please consider using blurUpdate which only shows errors after a blur event.

Inheritance
Annotations
  • @Directive(selector: 'material-input:not([blurUpdate]):not([changeUpdate])')

Constructors

MaterialInputDefaultValueAccessor(BaseMaterialInput input, @Self() @Optional() NgControl? control)

Properties

disposer Disposer
finalinherited
hashCode int
The hash code for this object.
no setterinherited
input BaseMaterialInput
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

formatValue(String? value) String
Handles converting input value to String.
inherited
ngOnDestroy() → void
Executed before the directive is removed from the DOM and destroyed.
inherited
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".
inherited
registerOnChange(ChangeFunction<String> callback) → void
Set the function to be called when the control receives a change event.
registerOnTouched(TouchFunction callback) → void
Set the function to be called when the control is touched.
inherited
toString() String
A string representation of this object.
inherited
writeValue(String? newValue) → void
Write a new value to the element.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited