calendar.js revision af588160cda24eb5a49cf49c51ae048cc5fdf664
/**
* 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"
});