PDA

View Full Version : ref Config option Equivalent



ksystems
21 Jan 2011, 3:43 AM
In Ext is used the config option ref a few times

http://dev.sencha.com/deploy/dev/docs/source/Component.html#cfg-Ext.Component-ref

I notice that this is absent in Sencha Touch. Is this intentional and what is the best choice here without navigiating nest items collections?

mitchellsimoens
21 Jan 2011, 8:41 AM
I usually use my own references but you can use the new ComponentQuery

http://dev.sencha.com/deploy/touch/docs/?class=Ext.ComponentQuery

gordonjl
24 Jan 2011, 8:35 AM
I usually use my own references but you can use the new ComponentQuery

http://dev.sencha.com/deploy/touch/docs/?class=Ext.ComponentQuery

Would you give a code example of how you "use your own references"? My goal is to access a button in a dockedItem from the parent panel. If I can't use ref, I have to use
Ext.getCmp(), I would think.

Thanks!