npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

react-range-picker

0.6.1 • Public • Published

React Js based date/range picker, unlike other range pickers it uses single calendar to select the range.

install

$ npm i react-range-picker --save

use

import RangePicker from "react-range-picker"
 
<RangePicker/>
 

APIS

API Type Description
onDateSelected function gets called each time dates gets selected (params - startDate, startDate)
onOk function gets called on click on select button (params - startDate, endDate)
enableRange boolean if true, range select will be enable (default false)
selectTime boolean if true, time select will show up on date select (default false)
rangeTillEndOfDay boolean if true, then second selected date for range will have time of end of the day (11.59 PM) else it will have time of start of the day (12:00 AM)
placeholder react component it replaces default placeholder, the component will receive following props (startDate , endDate , showTime )
footer react component it replaces default placeholder, the component will receive following props (startDate , startDate , showTime , onToday , onOk )

install

npm i react-range-picker

Downloadsweekly downloads

3

version

0.6.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability