Skip to content

Blackening999/react-calendar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
Sep 11, 2015
Jun 3, 2015
Jun 3, 2015
Nov 11, 2014
Feb 8, 2015
May 30, 2014
Jul 10, 2015
Sep 12, 2015

Repository files navigation

react-calendar

This is an extension of original repository.

What were added?

  • selectedOption (Object)
  • untilDate (Boolean)

selectedOption structure

 {
    show: 'day|week',
    day|week: 'YYYY-MM-D | YYYY-W'
 }

allows user

Example: { show: 'day', day: moment().format('YYYY-MM-DD') } { show: 'week', day: moment().format('YYYY-W') }

<Calendar selectedOption={this.state.selectedOption} showDaysOfWeek={true} forceSixRows={false}
        untilDate={true} onPickDate={this.datePicked.bind(this)}/>

React calendar component inspired by CLNDR.js.

$ npm install react-calendar-component

See the demo

http://hanse.github.io/react-calendar/

var React = require('react');
var Calendar = require('react-calendar-component').Calendar;

function onDatePicked(date) {
  alert(date);
}

React.render(
  <Calendar showDaysOfWeek={true}
            forceSixRows={false}
            onPickDate={onDatePicked} />,
  document.getElementById('calendar')
);

Build it yourself

$ npm install
$ make

License

MIT

#Contributors Vladimir Katansky, Svyatoslav Dardalan

About

React.js Calendar Component

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%