PDA

View Full Version : find, findBy, findById Component methods missing?



Bucs
23 Dec 2010, 8:17 AM
I am trying to find a component within a Panel and wanted to use the cmp.findById method but it is nowhere to be found...though the API search for 'find' reveals all the links back to the component as if they should exist. What's the deal here, how do I find a component within another component, .query? Have the find methods been deprecated? Be nice to see an example usage of query if indeed that is what we need to be showing now.

Thanks.

xnakxx
23 Dec 2010, 1:56 PM
you know the component exists right?
maybe Ext.getCmp()

Bucs
23 Dec 2010, 2:06 PM
Thanks, but that doesn't work when this is an extended reusable component that may exist in multiple places. Can't use static IDs in this scenario, so you have to start with a container and then find a component within it...so was interested in findBy specifically. But regardless, it still doesn't explain why the API search shows that these find methods should be available but are not :)

xnakxx
23 Dec 2010, 2:13 PM
perhaps mypanel.child() and use a css selector

evant
24 Dec 2010, 2:23 PM
They were removed in favour of ComponentQuery, it's like DomQuery but for components!