I am trying to fill a datefield with todays date by doubleclicking the datefield. now I have no clickevent for xtype: datefield.
is it possible to still 'add' a doubleclick event to a datefield, or is there another workaround??
example code:
xtype: 'datefield',
name: 'reminderDate',
itemId: 'reminderDate',
fieldLabel: 'Erinnerung am',
padding: '10',
style: 'background-color: red'
Ext.form.field.Date
does not havedblclick
event. However after component is rendered you can bind listener fordblclick
event on datefield input element. You can get datefield input element fromExt.form.field.Date
inputEl
property.Live fiddle with example: https://fiddle.sencha.com/#fiddle/2bo