roc

react-ordinary-calendar

A ordinary calendar component built with React.js

Showing:

Popularity

Downloads/wk

0

GitHub Stars

1

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

react-ordinary-calendar

Installation

npm install --save-dev react-ordinary-calendar

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import Calendar from 'react-ordinary-calendar';

let wrapper = document.getElementById("wrapper");
ReactDOM.render(
  <Calendar />, 
  wrapper
);

Props

callback

You can pass the callback function with this prop. The callback function you passed will be called when td > a is clicked.

let myCallback = function(arg) {
  console.log(arg); //e.g. 2015-11-01
};

ReactDOM.render(
  <Calendar callback={myCallback} />, 
  wrapper
);

You can get the date from the argument.

defaultStyle

If you don't want to use default inline style, you can remove it.

ReactDOM.render(
  <Calendar defaultStyle={false} />, 
  wrapper
);

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial