0.0.1 • Published 5 years ago

unilog-date-picker v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

DatePicker


DatePicker is a library developed by Unilog, Tunisie

Installation

You can install the library using this command :

npm install 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

InputTypeRequiredDescription
labelstringnolabel to show at the top of the datePicker
stylestringnocontain the style of the datePicker
0.0.1

5 years ago