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.

48 lines (39 loc) 1.13 kB
define(["dojo/_base/declare", "dijit/_WidgetBase", "dijit/_TemplatedMixin", "./_RendererMixin", "dojo/text!./templates/MobileVerticalRenderer.html"], function(declare, _WidgetBase, _TemplatedMixin, _RendererMixin, template){ return declare("dojox.calendar.MobileVerticalRenderer", [_WidgetBase, _TemplatedMixin, _RendererMixin], { // summary: // The mobile specific item vertical renderer. templateString: template, mobile: true, visibilityLimits: { resizeStartHandle: 75, resizeEndHandle: -1, summaryLabel: 55, startTimeLabel: 75, endTimeLabel: 20 }, 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); } }); });