Tuesday 18 December 2012

dijit.form.DateTextBox example

 <form:input path="asEndDate" id="endDate" type="text" data-dojo-type="dijit.form.DateTextBox"  
      data-dojo-props="onChange: function() {dijit.byId('fromDate').constraints.max = arguments[0];  
      dijit.byId('asReviewStart').constraints.max = arguments[0];  
      dijit.byId('asReviewEnd').constraints.max = arguments[0];            
      }, required: true, constraints:{datePattern: '${datePattern}'}" />  

No comments: