A custom button
npm install @ppci/date-pickerA date picker based on lightpick https://wakirin.github.io/Lightpick/
javascript
npm i @ppci/date-picker
`$3
#### Javascript
`javascript
import '@ppci/date-picker'
`#### Browser
`html
isRange={Boolean}
startDate={Date}
endDate={Date}
numberOfMonths={Date}
@change={Function}
>
`$3
`css
date-picker {
}
`$3
Property
Type
Description
Possible Values
isRange
Boolean
Set to true if you want to select a date range.
`html
`
startDate
Date
endDate
Date
numberOfMonths
Number
Number of visible months.
$3
Name
Description
Detail / Payload
@change
Date/date range has changed
`javascript
{
...,
detail: {
// startDate moment JS date object
start,
// endDate moment JS date object
end
},
}
``