calendar-component

Calendar component

Calendar

Calendar UI component designed for use as a date-picker, full-sized calendar or anything in-between.

$ component install component/calendar
var Calendar = require('calendar');
var cal = new Calendar;
cal.el.appendTo('body');
  • prev when the prev link is clicked
  • next when the next link is clicked
  • change (date) when the selected date is modified

Initialize a new Calendar with the given date shown, defaulting to now.

Select the given date (Date object).

Show the given date. This does not select the given date, it simply ensures that it is visible in the current view.

Show the previous view (month).

Show the next view (month).

Aurora:

License

MIT