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