0.2.1 • Published 8 years ago

react-flex-datepicker v0.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 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

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago