PDA

View Full Version : How to convert a dom input to a Ext.form.field.Text



sofway
22 Sep 2011, 1:44 PM
Hi,
i have an html input that i want to get and apply some ext listeners. The problem is that this dom element is not an Ext component so i can't use all the functionalities.

Thanks
Santiago

mitchellsimoens
23 Sep 2011, 5:07 AM
What events are you wanting to listen for? Do you need to create a Component out of it or just need to do Ext.get and add listeners to the dom?

If you want to create a Component, believe contentEl is the way to go for you.