1.0.6 • Published 2 years ago

ng-pattern-mask v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Status

Build and publish library to github registry Build and publish library to npm.js registry

Install

npm install ng-pattern-mask

Setup

import {NgPatternMaskModule} from 'ng-pattern-mask';

@NgModule({
  imports: [
    NgPatternMaskModule,
    ...
  ],
  ...
}) {...}

Configuration

ParameterRequiredDescription
ngpmPatternRequiredThe pattern used by directive
ngpmDigitPlaceholdersOptionalDigit placeholders used by directive - Default set = "dDmMyYhH09"
ngpmCharPlaceholdersOptionalChar placeholders used by directive - Default set = "_"
placeholderOptionalInput placeholder

Basic usage

<!-- directive -->
<input 
    ngPatternMask
    ngpmPattern="dd.MM.yyyy"
    placeholder="dd.MM.yyyy"
    ngpmDigitPlaceholders="dDmMyYhH09" <!-- OPTIONAL default = dDmMyYhH09 -->
    ngpmCharPlaceholders="_-" <!-- OPTIONAL default = _ -->
/>
1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.0

2 years ago