0.15.8 • Published 8 years ago
react-dom-calendar v0.15.8
this is a somewhat temporary package until react-big-calendar is updated. It adds a resizable prop that react-big-calendar doesn't have yet
react-big-calendar
An events calendar component built for React and made for modern browsers (read: IE10+) and uses flexbox over the classic tables-ception approach.
Inspired by Full Calendar.
Use and Setup
npm install react-dom-calendar --save
Include react-dom-calendar/lib/css/react-dom-calendar.css for styles.
Run examples locally
- Clone this repository
- Retrieve dependencies:
npm install - Start:
npm run examples - Open localhost:3000/examples/index.html.
Localization and Date Formatting
react-dom-calendar includes two options for handling the date formatting and culture localization, depending
on your preference of DateTime libraries. You can use either the Moment.js or Globalize.js localizers.
Regardless of your choice, you must choose a localizer to use this library:
Moment.js
import BigCalendar from 'react-dom-calendar';
import moment from 'moment';
BigCalendar.setLocalizer(
BigCalendar.momentLocalizer(moment)
);Globalize.js v0.1.1
import BigCalendar from 'react-dom-calendar';
import globalize from 'globalize';
BigCalendar.setLocalizer(
BigCalendar.globalizeLocalizer(globalize)
);