I have a DateField:
editor : new Ext.form.DateField({ /*Ext.ux.form.Custom*/
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 of this field is disabled. On any edit, it shows popup, so any clear of date is impossible. Is there a way to add to popup something like button Today, but meaning Clear, after which date in this field will be resetted to 00.00.00?
Thanks.
Updated
Its made – here is code:
http://publikz.com/?p=1223