FoNumberInputComponent constructor
FoNumberInputComponent(
- @Self() @Optional() NgControl? control,
- @Attribute('tabindex') String? tabIndex,
- ChangeDetectorRef _changeDetectorRef
Implementation
FoNumberInputComponent(@Self() @Optional() this.control,
@Attribute('tabindex') this.tabIndex, this._changeDetectorRef) {
try {
tabIndexNum = tabIndex == null ? null : int.parse(tabIndex!);
} on FormatException catch (e) {
print(e.message);
}
_mouseUpListener = html.document.onMouseUp.listen(onMouseUp);
_touchEndListener = html.document.onTouchEnd.listen(onMouseUp);
_keyUpListener = html.document.onKeyUp.listen(onMouseUp);
control?.valueAccessor = this;
}