UNPKG

@uiowa/digit-only

Version:

This package includes two Angular directives. The digitOnly directive only allows numbers in the input box when typing, pasting or drag/dropping. The mask directive checks the input pattern attribute.

15 lines (14 loc) 525 B
import { ElementRef } from '@angular/core'; import * as i0 from "@angular/core"; export declare class MaskDirective { el: ElementRef; private navigationKeys; inputElement: HTMLInputElement; regex: RegExp; constructor(el: ElementRef); ngOnInit(): void; onKeyDown(e: KeyboardEvent): void; private forecastValue; static ɵfac: i0.ɵɵFactoryDeclaration<MaskDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<MaskDirective, "[mask]", never, {}, {}, never, never, true, never>; }