mat-currency-format
Version:
This repos is creating a library for angular currency input and also it is showing how to use the library
23 lines (22 loc) • 749 B
TypeScript
import { ElementRef, AfterViewInit, Renderer2 } from '@angular/core';
import { CurrencyPipe } from '@angular/common';
/**
* The function to reverse the number format
*/
export declare function reverseFormatNumber(val: any, locale: any): any;
export declare class MatCurrencyFormatDirective implements AfterViewInit {
private el;
private currencyPipe;
private renderer;
private locale;
currencyCode: string;
allowNegative: boolean;
constructor(el: ElementRef, currencyPipe: CurrencyPipe, renderer: Renderer2, locale: string);
private regex;
private specialKeys;
ngAfterViewInit(): void;
onFocus(): void;
onFocusout(): void;
onKeyDown(event: KeyboardEvent): void;
onBlur($event: any): void;
}