HPB Datepicker - An angular datepicker
Requirements
Animations requiere Gsap
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.19.0/TweenMax.min.js"></script>
Also momentjs is necesary
"dependencies": ,
Installation
$ npm install hpb-datepicker --save
Usage
Import in your module
import
Use as a directive
<h-hsdp ="selectDatePicker($event)" [options]="dpOptions" [showYearPicker]="true" [position]="'top'" [mainColor]="'#D0A368'"></h-hsdp>
Inputs
Input | Default | Type | Required |
---|---|---|---|
inputEvents | - | event | no |
options | - | DatePickerOptions class | no |
mainColor | #6AB7FC | string | no |
position | default | string | no |
showYearPicker | false | boolean | no |
DatePickerOptions Class (hsdp.component.ts line 51)
export class DatePickerOptions
Outputs
Input | Default | Type | Required |
---|---|---|---|
outputEvents | - | event | no |
Credits
This is an adaptation of this awesome datepicker
License
MIT