This library was generated with Angular CLI version 9.0.7.
This is a simple date picker component that can be used to select date object.
Users have to add fontawsome into project to make sure the icons showd properly.
Add fontawesome script tag into index.html head.
<script
src="https://kit.fontawesome.com/c5f1a64c8a.js" crossorigin="anonymous">
</script>
npm i @ericora/date-picker --save
import {DatePickerModule} from '@ericora/date-picker';
@NgModule({
...
imports: [DatePickerModule]
...
})
<div><date-picker (dateChange)="urFunction($event)" [selectedDate]="dateObj" [minDate]="dateObj" [maxDate]="dateObj"></date-picker><div>
Notice: the component size will depends on its parent size, so you need create a customized tag to nest it. All Input is optional. Default [selectDay] is the current date.