wninputpattern
v0.0.17
Published
Simple directive for your input pattern.
Downloads
68
Maintainers
Readme
Wninputpattern
Simple directive for your input pattern.
Table of Contents
Installation
$ npm i wninputpattern
Usage
To use WninputpatternDirective in your Angular project, import the WninputpatternModule into your module and add it to your template.For example, to use the Number
directive:
import { WninputpatternModule } from 'wninputpattern';
@NgModule({
// ...
imports: [
// ...
WninputpatternModule,
// ...
],
// ...
})
export class AppModule { }
In your component's template:
<input Number/>
Available Directives
1. Number
Directive to make input field will only accept numeric values.
2. Thai
Directive to make input field will only accept Thai Alphabet.
3. English
Directive to make input field will only accept English Alphabet.
4. Special
Directive to make input field will only don't accept some special characters (accept ; , . () ' : - / + # @ & _ [ ] % *).
5. SpecialAll
Directive to make input field will only don't accept all special characters.
6. Email
Directive to make input field will only accept email pattern.