PDA

View Full Version : How to give an id to the trigger's input field of dateField ?



debabrata
30 Jan 2012, 11:41 PM
How to give an id to the trigger's input field of dateField ?

For my requirement i need to give an id to trigger's input field.If i do not give an id it is taking auto generated id which changing continuously.

Thanks in advance.

skirtle
31 Jan 2012, 12:59 AM
To give an id to the input element use inputId:

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.form.field.Date-cfg-inputId

To give an id to the date field itself use id:

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.form.field.Date-cfg-id

Note that in both cases the ids must be unique and this can often prove problematic. I would advise you to reconsider whether or not this truly is a requirement and avoid using ids if at all possible.

debabrata
31 Jan 2012, 9:01 PM
thank you skirtle (http://www.sencha.com/forum/member.php?197255-skirtle).