JSPM

rc-calendar

1.3.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 140886
  • Score
    100M100P100Q164511F

calendar ui component for react

Package Exports

  • rc-calendar

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rc-calendar) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

rc-calendar


calendar ui component for react, port from https://github.com/kissyteam/date-picker

NPM version SPM version build status Test coverage gemnasium deps node version npm download Sauce Test Status

Sauce Test Status

Screenshots

rc-calendar

rc-calendar-input

Feature

  • support ie8,ie8+,chrome,firefox,safari
  • support date, month, year, decade select panel
  • support week number
  • support en-us and zh-cn locale (ui and timeOffset)
  • support aria and keyboard accessibility

install

rc-calendar

Usage

var Calendar = require('rc-calendar');
var React = require('react');
React.render(<Calendar />, container);

For details to see: https://github.com/yiminghe/learning-react/tree/master/example/rc-calendar

API

props

name type default description
locale Object require('rc-calendar/lib/locale/en-use') calendar locale
showWeekNumber Boolean false whether to show week number of year
showToday Boolean true whether to show today button
focused Boolean false whether to focus on render
onSelect Function(GregorianCalendar date) function(){} called when a date is selected from calendar
onBlur Function() function(){} called when calendar loose focus

online docs: http://spmjs.io/docs/rc-calendar/

Development

npm install
npm start

Example

http://localhost:8001/examples/index.md

online example: http://spmjs.io/docs/rc-calendar/examples/

Test Case

http://localhost:8001/tests/runner.html?coverage

Coverage

http://localhost:8001/node_modules/rc-server/node_modules/node-jscover/lib/front-end/jscoverage.html?w=http://localhost:8001/tests/runner.html?coverage

License

rc-calendar is released under the MIT license.