Rev | Line | |
---|
[483] | 1 | define(["dojo/_base/declare", "dijit/_WidgetBase", "dijit/_TemplatedMixin", |
---|
| 2 | "dojox/calendar/_RendererMixin", "dojo/text!./templates/MobileVerticalRenderer.html"], |
---|
| 3 | |
---|
| 4 | function(declare, _WidgetBase, _TemplatedMixin, _RendererMixin, template){ |
---|
| 5 | |
---|
| 6 | return declare("dojox.calendar.MobileVerticalRenderer", [_WidgetBase, _TemplatedMixin, _RendererMixin], { |
---|
| 7 | |
---|
| 8 | // summary: |
---|
| 9 | // The mobile specific item vertical renderer. |
---|
| 10 | |
---|
| 11 | templateString: template, |
---|
| 12 | mobile: true, |
---|
| 13 | |
---|
| 14 | visibilityLimits: { |
---|
| 15 | resizeStartHandle: 75, |
---|
| 16 | resizeEndHandle: -1, |
---|
| 17 | summaryLabel: 55, |
---|
| 18 | startTimeLabel: 75, |
---|
| 19 | endTimeLabel: 20 |
---|
| 20 | }, |
---|
| 21 | |
---|
| 22 | postCreate: function() { |
---|
| 23 | this.inherited(arguments); |
---|
| 24 | this._applyAttributes(); |
---|
| 25 | }, |
---|
| 26 | |
---|
| 27 | _isElementVisible: function(elt, startHidden, endHidden, size){ |
---|
| 28 | var d; |
---|
| 29 | |
---|
| 30 | switch(elt){ |
---|
| 31 | case "startTimeLabel": |
---|
| 32 | d = this.item.startTime; |
---|
| 33 | if(this.item.allDay || this.owner.isStartOfDay(d)){ |
---|
| 34 | return false; |
---|
| 35 | } |
---|
| 36 | break; |
---|
| 37 | case "endTimeLabel": |
---|
| 38 | d = this.item.endTime; |
---|
| 39 | if(this.item.allDay || this.owner.isStartOfDay(d)){ |
---|
| 40 | return false; |
---|
| 41 | } |
---|
| 42 | break; |
---|
| 43 | } |
---|
| 44 | return this.inherited(arguments); |
---|
| 45 | } |
---|
| 46 | }); |
---|
| 47 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.