0.2.1 • Published 10 years ago

react-flex-datepicker v0.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

Flexible React DatePicker

Installation

  npm install react-flex-datepicker --save

Example

var React = require('react');
var ReactDOM = require('react-dom');
var Datepicker = require('react-flex-datepicker');
require('react-flex-datepicker/dist/css/datepicker.min.css');

var element = document.createElement('div');
document.body.appendChild(element);

element.style.width = '300px';
ReactDOM.unmountComponentAtNode(element);

ReactDOM.render(Datepicker(/* .. */), element);

Props

cssClass

type: String

dateFormat

type: String — use is for formatting dates
more about date formats

cssModifier

type: String

dayChildrenFunc

type: Function arguments: Date rendering date

dayCssClassFunc

type: Function arguments: Date rendering date

onDraw

type: Function arguments: Date rendering month date

onSelect

type: Function arguments: Date rendering month date Array new selected array

i18n

type: Object keys: {previousMonth, nextMonth, months, weekdays, weekdaysShort}

minDate

type: Date

maxDate

type: Date

startDate

type: Date

range

type: String one of: 'from', 'to'

selected

type: Array of Date

firstDay

type: Number first day of the week. only one of (0: Sunday, 1: Monday)

0.2.1

10 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago