calendar.js revision 21257820ee962f4f2275b39088c43fcfd76f7fde
/**
* The Calendar component is a UI widget that allows users
* to view dates in a two-dimensional month grid, as well as
* to select one or more dates, or ranges of dates. Calendar
* is generated dynamically.
*
* @module calendar
* @submodule calendar-base
*/
/** Create a calendar view to represent a single or multiple
* month range of dates, rendered as a grid with date and
* weekday labels.
*
* @class Calendar
* @extends CalendarBase
* @param config {Object} Configuration object (see Configuration attributes)
* @constructor
*/
CALENDAR = 'calendar',
}
renderUI : function () {
contentBox.one("." + CAL_HD).prepend("<input type='button' id='" + this._calendarId + "minusyear' value='«'><input type='button' id='" + this._calendarId + "minusmonth' value='‹'>");
contentBox.one("." + CAL_HD).append("<input type='button' id='" + this._calendarId + "plusmonth' value='›'><input type='button' id='" + this._calendarId + "plusyear' value='»'>");
},
_bindCalendarEvents : function () {
},
_clickCalendar : function (e) {
var clickedCell = e.target;
if (clickedCell.test("." + CAL_DAY) && !clickedCell.test("." + CAL_PREVMONTH_DAY) && !clickedCell.test("." + CAL_NEXTMONTH_DAY)) {
}
},
_subtractMonth : function (e) {
e.halt();
},
_subtractYear : function (e) {
e.halt();
},
_addMonth : function (e) {
e.halt();
},
_addYear : function (e) {
e.halt();
},
},
{
NAME: "Calendar"
});