X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/530ef4b6c5b943cfa68b779d11cf7de29aa878bf..e9397f91ede62d446aed37d23256e8938fc4c335:/examples/calendar/src/templates/DayViewTemplate.js diff --git a/examples/calendar/src/templates/DayViewTemplate.js b/examples/calendar/src/templates/DayViewTemplate.js new file mode 100644 index 00000000..e9eb557b --- /dev/null +++ b/examples/calendar/src/templates/DayViewTemplate.js @@ -0,0 +1,47 @@ +/*! + * Ext JS Library 3.3.1 + * Copyright(c) 2006-2010 Sencha Inc. + * licensing@sencha.com + * http://www.sencha.com/license + */ +/** + * @class Ext.calendar.DayViewTemplate + * @extends Ext.XTemplate + *
This is the template used to render the all-day event container used in {@link Ext.calendar.DayView DayView} and + * {@link Ext.calendar.WeekView WeekView}. Internally this class simply defers to instances of {@link Ext.calerndar.DayHeaderTemplate} + * and {@link Ext.calerndar.DayBodyTemplate} to perform the actual rendering logic, but it also provides the overall calendar view + * container that contains them both. As such this is the template that should be used when rendering day or week views.
+ *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.DayViewTemplate = function(config){ + + Ext.apply(this, config); + + this.headerTpl = new Ext.calendar.DayHeaderTemplate(config); + this.headerTpl.compile(); + + this.bodyTpl = new Ext.calendar.DayBodyTemplate(config); + this.bodyTpl.compile(); + + Ext.calendar.DayViewTemplate.superclass.constructor.call(this, + '