/**
* 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 CalendarBase
* @extends Widget
* @param config {Object} Configuration object (see Configuration attributes)
* @constructor
*/
CALENDAR = 'calendar',
L = Y.Lang,
substitute = Y.substitute,
function CalendarBase() {
}
initializer : function () {
},
renderUI : function () {
Y.log("Rendered Calendar UI");
},
bindUI : function () {
},
_getCutoffColumn : function (date) {
},
_initCalendarHTML : function (baseDate) {
startDate.getFullYear()},
calString = '',
wday2: 'Mo',
wday3: 'Tu',
wday4: 'We',
wday5: 'Th',
wday6: 'Fr',
wday7: 'Sa'};
var partials = {};
partials["weekday_row"] +=
{weekdayname: v});
}
);
var row_array = [];
for (var i = 0; i <= 5; i++) {
var calday_row = '';
for (var j = -5; j <=7; j++) {
}
}
return header;
}
}, {
// Y.CalendarBase static properties
CALENDAR_CLASSES : {
},
CONTENT_TEMPLATE: '<table class="{calendar_grid_class}">' +
'<thead>' +
'{header_template}' +
'{wdayrow_template}' +
'</thead>' +
'<tbody class="{calendar_body_class}">' +
'{body_template}' +
'</tbody>' +
'</table>',
HEADER_TEMPLATE: '<tr>' +
'<th colspan="7" class="{calendar_hd_class}">' +
'<div id="calheader" class="{calendar_hd_wrapper_class}">' +
'{calheader}' +
'</div>' +
'</th>' +
'</tr>',
WEEKDAY_ROW_TEMPLATE: '<tr class="{calendar_weekdayrow_class}">' +
'{weekday_row}' +
'</tr>',
CALDAY_ROW_TEMPLATE: '<tr class="{calendar_row_class}">' +
'{calday_row}' +
'</tr>',
WEEKDAY_TEMPLATE: '<th class="{calendar_weekday_class}">{weekdayname}</th>',
CALDAY_TEMPLATE: '<td class="{calendar_day_class}" {day_display_status}>' +
'<a href="#" class="{calendar_dayanchor_class}">' +
'{day_content}' +
'</a>' +
'</td>',
NAME: 'calendarBase',
ATTRS: {
}
});