1.0.6 • Published 1 year ago

ng-pattern-mask v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.0

1 year ago