Web UI for ARGUS server
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.

60 lines
2.5 KiB

6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>The source code</title>
  5. <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  6. <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  7. </head>
  8. <body onload="prettyPrint();">
  9. <pre class="prettyprint lang-js">/*!
  10. * Ext JS Library 3.3.1
  11. * Copyright(c) 2006-2010 Sencha Inc.
  12. * licensing@sencha.com
  13. * http://www.sencha.com/license
  14. */
  15. <div id="cls-Ext.calendar.DayHeaderTemplate"></div>/**
  16. * @class Ext.calendar.DayHeaderTemplate
  17. * @extends Ext.XTemplate
  18. * <p>This is the template used to render the all-day event container used in {@link Ext.calendar.DayView DayView} and
  19. * {@link Ext.calendar.WeekView WeekView}. Internally the majority of the layout logic is deferred to an instance of
  20. * {@link Ext.calendar.BoxLayoutTemplate}.</p>
  21. * <p>This template is automatically bound to the underlying event store by the
  22. * calendar components and expects records of type {@link Ext.calendar.EventRecord}.</p>
  23. * <p>Note that this template would not normally be used directly. Instead you would use the {@link Ext.calendar.DayViewTemplate}
  24. * that internally creates an instance of this template along with a {@link Ext.calendar.DayBodyTemplate}.</p>
  25. * @constructor
  26. * @param {Object} config The config object
  27. */
  28. Ext.calendar.DayHeaderTemplate = function(config){
  29. Ext.apply(this, config);
  30. this.allDayTpl = new Ext.calendar.BoxLayoutTemplate(config);
  31. this.allDayTpl.compile();
  32. Ext.calendar.DayHeaderTemplate.superclass.constructor.call(this,
  33. '<div class="ext-cal-hd-ct">',
  34. '<table class="ext-cal-hd-days-tbl" cellspacing="0" cellpadding="0">',
  35. '<tbody>',
  36. '<tr>',
  37. '<td class="ext-cal-gutter"></td>',
  38. '<td class="ext-cal-hd-days-td"><div class="ext-cal-hd-ad-inner">{allDayTpl}</div></td>',
  39. '<td class="ext-cal-gutter-rt"></td>',
  40. '</tr>',
  41. '</tobdy>',
  42. '</table>',
  43. '</div>'
  44. );
  45. };
  46. Ext.extend(Ext.calendar.DayHeaderTemplate, Ext.XTemplate, {
  47. applyTemplate : function(o){
  48. return Ext.calendar.DayHeaderTemplate.superclass.applyTemplate.call(this, {
  49. allDayTpl: this.allDayTpl.apply(o)
  50. });
  51. }
  52. });
  53. Ext.calendar.DayHeaderTemplate.prototype.apply = Ext.calendar.DayHeaderTemplate.prototype.applyTemplate;
  54. </pre>
  55. </body>
  56. </html>