sample skeleton application with dojo toolkit & arcgis js api v 4.30
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.
 
 
 
 
 
 

39 lines
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);
}
});
});