0.0.1 • Published 4 years ago

ngx-currency-angular-mask v0.0.1

Weekly downloads
4
License
-
Repository
-
Last release
4 years ago

Ngx currency mask

Introduction

Install the generator:

    npm install ngx-currency-angular-mask

ngx-currency-angular-mask is a directive that tansforms a number without dot and commas to spanish format (1000000 => 1.000.000)

Usage

The module thtat contains the currency mask is this: NgxCurrencyMaskModule. And it is used as follows:

<input NgxCurrencyMask [options]="options"/>

This directive has one input option and it has this structure:

export interface ICurrencyConfig {
    decimalLength?: number; // Maximum decimal size
    numberLength?: number; // Maximum number size
    isAutocalc?: boolean; // It is used when the input is disabled
}