UNPKG

@justa/mask-directive

Version:

![](https://img.shields.io/bundlephobia/minzip/@justa/mask-directive.svg?style=flat-square) ![](https://img.shields.io/bundlephobia/min/@justa/mask-directive.svg?style=flat-square)

19 lines (18 loc) 728 B
import { OnInit, OnDestroy, ElementRef, Renderer2 } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; export declare class PercentageMaskDirective implements OnInit, OnDestroy, ControlValueAccessor { private elementRef; private renderer; percentSuffix: string; onChange?: (event: any) => void; onTouched?: (event: any) => void; private mask; private rendererTimeout?; constructor(elementRef: ElementRef, renderer: Renderer2); ngOnInit(): void; ngOnDestroy(): void; writeValue(rawValue: any): void; registerOnChange(onChange: (event: any) => void): void; registerOnTouched(onTouched: (event: any) => void): void; onInputBlur(event: any): void; }