Integrating Ext JS and Datejs



For more information please see the original blog post describing the integration.

The code to instantiate the Ext.form.DateField object is standard:

Ext.onReady(function(){
  df = new Ext.form.DateField({
   renderTo:"datefield",
   width:250,
   validationDelay:100,
   msgTarget:"under"
  });
});

Try typing a natural-language date, like 'tomorrow' or 'next sunday' and the hit the Tab key or click the date picker.

Download the Ext override code for Datejs compatability.

 

 


© 2007-2012, Corey Gilmore | Posts RSS Feed | Comments RSS Feed | Contact

 

The views expressed on these pages are mine alone and not those of any past or present employer. All information presented on this site was obtained lawfully and not through disclosure under the terms of an NDA.