react-date-picker-kp

1.0.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i react-date-picker-kp

Weekly Downloads

0

Version

1.0.1

License

none

Unpacked Size

35.9 kB

Total Files

14

Last publish

Collaborators

  • kp_dev