2.0.0 • Published 9 years ago

react-datetimepicker v2.0.0

Weekly downloads
51
License
ISC
Repository
github
Last release
9 years ago

About

Simple datetimepicker for use with React.js. The only dependencies are moment and React. The styling is minimal and you will most likely have to customize it.

Screenshot

Changes

  • 2.0.0
    • Breaking: switched to managed values

Usage

npm install react-datetimepicker

var DateTimePicker = require("react-datetimepicker");

API

Properties with defaults (all optional)

weekStart=1 // 0 -> Sun, 1 -> Mon, 2 -> Tue, 3 -> Wed, 4 -> Thu, 5 -> Fri, 6 -> Sat
time=true // show/hide time picker part
inputMode=true // render input or inline datepicker
dateFormat='YYYY-MM-DD' // used for input when time is set to false
dateValidator=undefined // bool function(date) - return false to disable selection of particular date
dateTimeFormat='YYYY-MM-DD HH:mm' // used for input when time is set to true
value=(new Date()) // 
onChange=undefined // Gets invoked when selection changes
2.0.0

9 years ago

1.0.11

9 years ago

1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago