2.3.4 • Published 6 years ago
ng2-trim-directive v2.3.4
ng2-trim-directive
The directive trims whitespaces from the end of an input text value.
Demo
Play with the directive here https://anein.github.io/angular2-trim-directive/.
Usage
Install
ng2-trim-directive.npm i ng2-trim-directiveor using Yarn
yarn add ng2-trim-directiveImport
InputTrimModuleto your Angular module.
import { InputTrimModule } from 'ng2-trim-directive';
@NgModule({
imports: [
...
InputTrimModule,
...
],
...Add the "trim" attribute to a text input or textarea element.
<input type="text" trim /> <textarea ... trim ></textarea>or with an option: trim value only on the blur event.
<input type="text" trim="blur" /> <textarea ... trim="blur" ></textarea>note: if you use the directive with without setting the blur event, it will behave like the text input element.
Good luck.
2.3.4
6 years ago
2.3.3
6 years ago
2.3.2
7 years ago
2.3.1
7 years ago
2.3.0
7 years ago
2.2.1
7 years ago
2.2.0
7 years ago
2.1.7
7 years ago
2.1.5
7 years ago
2.1.4
8 years ago
2.1.3
8 years ago
2.1.2
8 years ago
2.1.1
8 years ago
2.1.0
8 years ago
2.0.0
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago