@unilog/date-picker
v0.0.2
Published
--- DatePicker is a library developed by Unilog, Tunisie
Downloads
1
Maintainers
Readme
DatePicker
DatePicker is a library developed by Unilog, Tunisie
Installation
You can install the library using this command :
npm i @unilog/date-picker
Usage
Importing the library module
In order to use a component from the library we need to add the library’s module to our App Module. To do this we make two changes in: src\app\app.module.ts
Import the DatePickerModule
Add the DatePickerModule to the imports array in our AppModule
Actually using our library
Add the template of datePicker to your html
<unilog-date-picker [label]="'Date'" [style]="{'width':'100%'}" [(date)]="date">
</unilog-date-picker>
where date
is the ngModel variable
API
Inputs
| Input | Type | Required | Description | | :-------------: |:-------------:|:-------------:| :-------------------------------: | | label | string | no | label to show at the datePicker | | appearance | string | no | specify the appearance of the datePicker | | style | string | no | contain the style of the datePicker | | name | string | no | contain the name of the datePicker |