rj-calendar
v9.8.2
Published
React Calendar that supports Jalaali system
Downloads
13
Maintainers
Readme
rj-calendar
React Calendar that supports Jalaali system
Screenshots
Feature
- support ie9,ie9+,chrome,firefox,safari
- support date, month, year, decade select panel
- support week number
- support en_US and zh_CN locale(UI), use moment.utcOffset to set timezone
- support aria and keyboard accessibility
- Support Jalaali calendar system (partial support)
Keyboard
- Previous month (PageUp)
- Next month (PageDown)
- tab into hour input: Last hour(Up), Next hour(Down)
- tab into hour input: Last minute(Up), Next minute(Down)
- tab into hour input: Last second(Up), Next second(Down)
- Last year (Control + left)
- Next year (Control + right)
install
Usage
import Calendar from "rj-calendar";
import React from "react";
import ReactDOM from "react-dom";
ReactDOM.render(<Calendar />, container);
Development
npm install
npm start
Example
http://localhost:8002/examples/
online example:
http://saeidalidadi.github.io/rj-calendar/examples/index.html
API
rj-calendar props
rj-calendar/lib/RangeCalendar props
rj-calendar/lib/MonthCalendar props
rj-calendar/lib/Picker props
rj-calendar/lib/FullCalendar props
Test Case
npm test
npm run chrome-test
Coverage
npm run coverage
open coverage/ dir
License
rj-calendar is released under the MIT license.