BaseMaterialNumberValueAccessor<T> class abstract

Base accessor to handle various numerical types with MaterialInput.

Accessor always sets the raw String value that is set from the input, but only sets the value of a Control if the input could be parsed.

Inheritance
Implementers

Constructors

BaseMaterialNumberValueAccessor(MaterialInputComponent input, NgControl control, bool changeUpdate, bool keypressUpdate, bool blurFormat, [NumberFormat? _numberFormat])

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(T? value) String
Formats a value using provided NumberFormat, falling back to MaterialInputDefaultValueAccessor formatValue if none provided.
override
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
parseNumber(String? input) → T
Coerces the String value of the MaterialInput into type of T.
registerOnChange(ChangeFunction<T> 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(T? newValue) → void
Write a new value to the element.
override

Operators

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