0.0.2 • Published 4 years ago

@unilog/date-picker v0.0.2

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

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

InputTypeRequiredDescription
labelstringnolabel to show at the datePicker
appearancestringnospecify the appearance of the datePicker
stylestringnocontain the style of the datePicker
namestringnocontain the name of the datePicker