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');
prevwhen the prev link is clicked
nextwhen the next link is clicked
change(date) when the selected date is modified
Initialize a new
Calendar with the given
defaulting to now.
Select the given
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).