react-date-picker-kp
1.0.1 • Public • Published
This library is build on top of primereact to provide date range selection with two views and predefined date options.
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.) |
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. |
Readme
Keywords
nonePackage Sidebar
Install
npm i react-date-picker-kp
Weekly Downloads