View Full Version : replacement for 'applyTo' config of Ext.form.TextField in ExtJS 4.2.x

14 May 2014, 8:13 PM
I get this problem when upgrading ExtJS form version 3.1.1 to 4.2.1.

In ExtJS 3.x, there is a config - 'applyTo' for Ext.form.TextField, with this config, I can create a TextField from an existing element, that is ExtJS will not create new html element and only change the existing element attributes to make it become a Ext.form.TextField component.

However in ExtJS 4.2.1, I can not find this config in the docs, and the compatible layer of 3 to 4 says to use 'renderTo' to replace it. But it seems that 'renderTo' create a new html element.

How can I get the same result in ExtJS 4.2.1?

Gary Schlosberg
16 May 2014, 3:56 PM
I believe it changed with the rendering structure in 4.x. Here's a few threads that might help: