Skip to content

Instantly share code, notes, and snippets.

@aghuddleston
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aghuddleston/10418090 to your computer and use it in GitHub Desktop.
Save aghuddleston/10418090 to your computer and use it in GitHub Desktop.
Ext JS 4 extension for a date display field
Ext.define('Ext.ux.form.field.DateDisplayField', {
extend: 'Ext.form.field.Display',
alias: 'widget.datedisplayfield',
datePattern: 'Y-m-d',
valueToRaw: function(value) {
return Ext.util.Format.date(value, this.datePattern);
}
});
@wemersonjanuario
Copy link

very nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment