react-dtpicker
React Date Time Picker
Last updated a year ago by yozhikm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-dtpicker 
SYNC missed versions from official npm registry.

Date Time Picker

Greenkeeper badge DeepScan Grade

The calendar is written using the React library. Can be used both as a common calendar, and as a date time picker with range. There is a possibility to choose a date by days, months, years and decades. The date can be changed in the input.

DateTimePicker

Usage

  1. git clone https://github.com/YozhikM/dtpicker.git
  2. npm install
  3. npm start or yarn start
  4. npm test or yarn test

To use static typing, make sure that you have installed Flow.

API

highlight

Highlights the days. By default is new Date(). It can be a single date or an array of dates

value

Displayed months on the calendar. By default is new Date()

time

When the value is set to true, the time in hours and minutes will be displayed, as well as the ability to change it. By default is false

isSingleCalendar

When set to true, a single calendar will be displayed without the ability to select a date range. By default is false

DateTimePicker

Locales

To work with dates, use the library date-fns. Localization can be changed in a file src/components/Calendar/format.js

Current Tags

  • 1.0.2                                ...           latest (a year ago)

3 Versions

  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |