Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.8 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*!
  2. * Ext JS Library 3.3.1
  3. * Copyright(c) 2006-2010 Sencha Inc.
  4. * licensing@sencha.com
  5. * http://www.sencha.com/license
  6. */
  7. /**
  8. * @class Ext.calendar.DayViewTemplate
  9. * @extends Ext.XTemplate
  10. * <p>This is the template used to render the all-day event container used in {@link Ext.calendar.DayView DayView} and
  11. * {@link Ext.calendar.WeekView WeekView}. Internally this class simply defers to instances of {@link Ext.calerndar.DayHeaderTemplate}
  12. * and {@link Ext.calerndar.DayBodyTemplate} to perform the actual rendering logic, but it also provides the overall calendar view
  13. * container that contains them both. As such this is the template that should be used when rendering day or week views.</p>
  14. * <p>This template is automatically bound to the underlying event store by the
  15. * calendar components and expects records of type {@link Ext.calendar.EventRecord}.</p>
  16. * @constructor
  17. * @param {Object} config The config object
  18. */
  19. Ext.calendar.DayViewTemplate = function(config){
  20. Ext.apply(this, config);
  21. this.headerTpl = new Ext.calendar.DayHeaderTemplate(config);
  22. this.headerTpl.compile();
  23. this.bodyTpl = new Ext.calendar.DayBodyTemplate(config);
  24. this.bodyTpl.compile();
  25. Ext.calendar.DayViewTemplate.superclass.constructor.call(this,
  26. '<div class="ext-cal-inner-ct">',
  27. '{headerTpl}',
  28. '{bodyTpl}',
  29. '</div>'
  30. );
  31. };
  32. Ext.extend(Ext.calendar.DayViewTemplate, Ext.XTemplate, {
  33. // private
  34. applyTemplate : function(o){
  35. return Ext.calendar.DayViewTemplate.superclass.applyTemplate.call(this, {
  36. headerTpl: this.headerTpl.apply(o),
  37. bodyTpl: this.bodyTpl.apply(o)
  38. });
  39. }
  40. });
  41. Ext.calendar.DayViewTemplate.prototype.apply = Ext.calendar.DayViewTemplate.prototype.applyTemplate;