I have a DateField:
editor : new Ext.form.DateField({ allowBlank: true, format: 'm/d/Y', width : 120, enableKeyEvents: true, listeners: { 'keydown' : function (field_, e_ ) { field_.onTriggerClick(); e_.stopEvent(); return false; }, 'focus' : function (field_ ) { field_.onTriggerClick(); e_.stopEvent(); return false; } } })
Editing this field is disabled. With any editing, it displays a pop-up window, so any absence of a date is impossible. Is there a way to add something like the Today button to the popup, but the value is Clear, after which the date in this field will be reset to 00.00.00?
Thanks.
publikz.com
source share