UNPKG

dojox

Version:

Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.

40 lines (31 loc) 953 B
define(["dojo/_base/declare", "dijit/_WidgetBase", "dijit/_TemplatedMixin", "./_RendererMixin", "dojo/text!./templates/VerticalRenderer.html"], function(declare, _WidgetBase, _TemplatedMixin, _RendererMixin, template){ return declare("dojox.calendar.VerticalRenderer", [_WidgetBase, _TemplatedMixin, _RendererMixin], { // summary: // The default item vertical renderer. templateString: template, postCreate: function() { this.inherited(arguments); this._applyAttributes(); }, _isElementVisible: function(elt, startHidden, endHidden, size){ var d; switch(elt){ case "startTimeLabel": d = this.item.startTime; if(this.item.allDay || this.owner.isStartOfDay(d)){ return false; } break; case "endTimeLabel": d = this.item.endTime; if(this.item.allDay || this.owner.isStartOfDay(d)){ return false; } break; } return this.inherited(arguments); } }); });