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
Number
1. Directive to make input field will only accept numeric values.
Thai
2. Directive to make input field will only accept Thai Alphabet.
English
3. Directive to make input field will only accept English Alphabet.
Special
4. Directive to make input field will only don't accept some special characters (accept ; , . () ' : - / + # @ & _ [ ] % *).
SpecialAll
5. Directive to make input field will only don't accept all special characters.
Email
6. Directive to make input field will only accept email pattern.