X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/examples/docs/source/MonthViewTemplate.html diff --git a/examples/docs/source/MonthViewTemplate.html b/examples/docs/source/MonthViewTemplate.html deleted file mode 100644 index d819c2a9..00000000 --- a/examples/docs/source/MonthViewTemplate.html +++ /dev/null @@ -1,81 +0,0 @@ - - - - The source code - - - - -
/*!
- * Ext JS Library 3.3.1
- * Copyright(c) 2006-2010 Sencha Inc.
- * licensing@sencha.com
- * http://www.sencha.com/license
- */
-
/** - * @class Ext.calendar.MonthViewTemplate - * @extends Ext.XTemplate - *

This is the template used to render the {@link Ext.calendar.MonthView MonthView}. Internally this class defers to an - * instance of {@link Ext.calerndar.BoxLayoutTemplate} to handle the inner layout rendering and adds containing elements around - * that to form the month view.

- *

This template is automatically bound to the underlying event store by the - * calendar components and expects records of type {@link Ext.calendar.EventRecord}.

- * @constructor - * @param {Object} config The config object - */ -Ext.calendar.MonthViewTemplate = function(config){ - - Ext.apply(this, config); - - this.weekTpl = new Ext.calendar.BoxLayoutTemplate(config); - this.weekTpl.compile(); - - var weekLinkTpl = this.showWeekLinks ? '' : ''; - - Ext.calendar.MonthViewTemplate.superclass.constructor.call(this, - '
', - '
', - weekLinkTpl, - '', - '', - '', - '', - '', - '', - '', - '', - '
{.:date("D")}
', - '
', - '
{weeks}
', - '
' - ); -}; - -Ext.extend(Ext.calendar.MonthViewTemplate, Ext.XTemplate, { - // private - applyTemplate : function(o){ - var days = [], - weeks = this.weekTpl.apply(o), - dt = o.viewStart; - - for(var i = 0; i < 7; i++){ - days.push(dt.add(Date.DAY, i)); - } - - var extraClasses = this.showHeader === true ? '' : 'ext-cal-noheader'; - if(this.showWeekLinks){ - extraClasses += ' ext-cal-week-links'; - } - - return Ext.calendar.MonthViewTemplate.superclass.applyTemplate.call(this, { - days: days, - weeks: weeks, - extraClasses: extraClasses - }); - } -}); - -Ext.calendar.MonthViewTemplate.prototype.apply = Ext.calendar.MonthViewTemplate.prototype.applyTemplate; -
- - \ No newline at end of file