react-date-picker-kp
v1.0.1
Published
This library is build on top of primereact to provide date range selection with two views and predefined date options.
Downloads
2
Readme
Description:
This library is build on top of primereact to provide date range selection with two views and predefined date options.
Properties:
| Name | Type | Description |
| :-------- | :------- | :------------------------- |
| selectedDates
| DateRange<Date>
| optional. default selection of start and end date |
| dateFormat
| string
| optional. default is 'dd/MM/yyyy' |
| minDate
| Date
| optional. To specify minimum date default is current date -10 years. |
| maxDate
| Date
| optional. To specify max date default is current date +10 years. |
| selectedOptionIndex
| number
| optional. To default selected option. (by default it is 3 which is last 30 days.) |
Events
| Name | Type | Description |
| :-------- | :------- | :------------------------- |
| onDateSelectionChanged
| DateRange<Date>
| Emits when date selection is changed. And it contains range: DateRange and selectedOption: ISelectDateOption |
| dateListOptions
| ISelectDateOption[]
| Emits pre-defined date action list items for configuration purpose. |