0.1.9 • Published 6 years ago

sws-input v0.1.9

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

sws-input

sws-input module to work in Angular 5

To install simply run

npm install sws-input. Also you need install 1. npm i sws-label-directive


After that you need import style to your style.css file for style label

@import "../node_modules/sws-label-directive/label.css";

To use it in your Angular 5 app import the module. import {SwsInputModule} from 'sws-input';

import {SwsInputModule} from 'sws-input';
...
@NgModule({
imports:[
SwsInputModule
],
})  

In your components in html template input

<sws-input></sws-input>

Important Also you need sent to sws-datepicker parameter as formControl

<sws-input [control]="form.controls['name']"></sws-input>

If may sent any parameters 'label, id, maxLength' or input any errors. Example:

<sws-input [control]="form.controls['name']" [label]="'Your name'" [maxLength]="10" [id]="'name'">
<span *ngIf="form.controls['name'].hasError('required')">error</span>
</sws-input>
0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago