mike-merchant / react-calendar-widget

Home Page:http://eviltoylet.github.io/react-calendar-widget/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-calendar-widget

Introduction

This project is for creating a calendar widget using React.

Usage

To use this component:

var ReactDOM = require('react-dom');
var CalendarWidget = require('react-calendar-widget');

var setText = function (date) {
    // code for processing the JavaScript Date object
};

ReactDOM.render(
    <CalendarWidget onDaySelect={setText}/>,
    document.getElementById('calendar')
);

Optional properties

The following properties can be provided.

  • onDaySelect: a callback that receives the date that was selected.
  • range: a two element array (e.g. [new Date(), null]) which contains the start and end dates for which the calendar should be functional. If null is provided, there is no range set.

Known Issues

  • Year and month navigation shows no visual indication when it is disabled.

About

http://eviltoylet.github.io/react-calendar-widget/


Languages

Language:JavaScript 100.0%