calendar-component
v0.0.3
Published
Calendar component
Downloads
2
Readme
Calendar
Calendar UI component designed for use as a date-picker, full-sized calendar or anything in-between.
Installation
$ component install component/calendar
Example
var Calendar = require('calendar');
var cal = new Calendar;
cal.el.appendTo('body');
Events
prev
when the prev link is clickednext
when the next link is clickedchange
(date) when the selected date is modified
API
new Calendar(date)
Initialize a new Calendar
with the given date
shown,
defaulting to now.
Calendar#select(date)
Select the given date
(Date
object).
Calendar#show(date)
Show the given date
. This does not select the given date,
it simply ensures that it is visible in the current view.
Calendar#prev()
Show the previous view (month).
Calendar#next()
Show the next view (month).
Themes
License
MIT