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.

28 lines (22 loc) 476 B
define([ "dojo/_base/declare", "dojo/_base/lang", "dijit/Calendar"], function( declare, lang, Calendar){ return declare("demo.DatePicker", Calendar, { minDate: null, maxDate: null, getClassForDate: function(date, locale){ if(this.minDate && this.maxDate){ var cal = this.dateModule; if(cal.compare(date, this.minDate) >= 0 && cal.compare(date, this.maxDate) <= 0){ return "Highlighted"; } } return null; } }); });