Last active
August 29, 2015 13:58
-
-
Save aghuddleston/10418090 to your computer and use it in GitHub Desktop.
Ext JS 4 extension for a date display field
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
very nice