Created
July 25, 2014 03:40
-
-
Save xiexiao/00cecaf3c26deaa96812 to your computer and use it in GitHub Desktop.
a extjs datefield with a clear button
why the clearBtn handler can't be fired?
Because "ownerCt" should be specified as well:
this.clearBtn = new Ext.Button({ text: 'Clear', handler: function(){ dt1.setValue(''); dt1.picker.hide(); dt1.collapse(); }, renderTo: dt1.picker.todayBtn.container, ownerCt: dt1.picker });
why the clearBtn handler can't be fired?
Because "ownerCt" should be specified as well:
this.clearBtn = new Ext.Button({ text: 'Clear', handler: function(){ dt1.setValue(''); dt1.picker.hide(); dt1.collapse(); }, renderTo: dt1.picker.todayBtn.container, ownerCt: dt1.picker });
Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
why the clearBtn handler can't be fired?