Components /
Calendar
Click any cell for options, select day or week.
The arguments specifies where the calendar should appear, what functions are to be attached to the cells being clicked, and what function should trigger onload.
The function
xin.calendar.fetch(), is triggered when the calendar loads the first time.
|
The calendar is loading..
|
|
<div id="cal
"
onready="xin.calendar.init(
'cal',
'calendar_do.SelectDay:calendar_do.SelectWeek',
'calendar_do.onLoaded'
)" >
calendar is loading..
</div>
The component is attached to a widgetplus database by default.
This demo calendar is thus
live - and it's crossdomain and can be used on any site, anywhere.
Anyone signing up for a widgetplus account gets a calendar account, and it obeys the same rules as all widgetplus API's and widgets, being crossdomain, etc.
To update the calendar, you do something like
this to send the data to the calendar.