ExtJS 3 introduced a 'ref' attribute allowing the code to refer to the child components (nested at any level) of a given component using simple dot notation.
I am trying migrate the ExtJS 3 code that uses this technique to ExtJS 4 and getting errors stating that the child component is not defined. I checked the API documentation and was not able to find any trace of 'ref' attribute.
What happened to it? What is the proper way of referencing child components in ExtJS 4?
The ref functionality should have been kept. However, it should have been modified to use component selectors/query instead of it's own syntax.
I put ref in the framework for a purpose, to automate the process of looking up child components, instead of manually querying. "proper component query usage" doesn't address or apply to that at all. Why would anyone want to write a whole line of query code to get a reference that could have been automatic. In a real app, ref can save you 100s of lines of code. I used it religiously in every app I wrote with Ext 3.
Jack Slocum
Ext JS Founder
Original author of Ext JS 1, 2 & 3.
Twitter: @jackslocum jack@extjs.com