X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/b37ceabb82336ee82757cd32efe353cfab8ec267..f5240829880f87e0cf581c6a296e436fdef0ef80:/examples/docs/source/DayBodyTemplate.html diff --git a/examples/docs/source/DayBodyTemplate.html b/examples/docs/source/DayBodyTemplate.html new file mode 100644 index 00000000..f7470f15 --- /dev/null +++ b/examples/docs/source/DayBodyTemplate.html @@ -0,0 +1,100 @@ + + + + The source code + + + + +
/*!
+ * Ext JS Library 3.3.0
+ * Copyright(c) 2006-2010 Ext JS, Inc.
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
+
/** + * @class Ext.calendar.DayBodyTemplate + * @extends Ext.XTemplate + *

This is the template used to render the scrolling body container used in {@link Ext.calendar.DayView DayView} and + * {@link Ext.calendar.WeekView WeekView}. This template is automatically bound to the underlying event store by the + * calendar components and expects records of type {@link Ext.calendar.EventRecord}.

+ *

Note that this template would not normally be used directly. Instead you would use the {@link Ext.calendar.DayViewTemplate} + * that internally creates an instance of this template along with a {@link Ext.calendar.DayHeaderTemplate}.

+ * @constructor + * @param {Object} config The config object + */ +Ext.calendar.DayBodyTemplate = function(config){ + + Ext.apply(this, config); + + Ext.calendar.DayBodyTemplate.superclass.constructor.call(this, + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '', + '
', + '
', + '
', + '', + '
', + '
', + '
', + '
', + '
', + '
', + '
', + '', + '
', + '
{.}
', + '
', + '
', + '
', + '
', + '
', + '
', + '
' + ); +}; + +Ext.extend(Ext.calendar.DayBodyTemplate, Ext.XTemplate, { + // private + applyTemplate : function(o){ + this.today = new Date().clearTime(); + this.dayCount = this.dayCount || 1; + + var i = 0, days = [], + dt = o.viewStart.clone(), + times; + + for(; i + + \ No newline at end of file