View Full Version : find, findBy, findById Component methods missing?
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.
23 Dec 2010, 1:56 PM
you know the component exists right?
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 :)
23 Dec 2010, 2:13 PM
perhaps mypanel.child() and use a css selector
24 Dec 2010, 2:23 PM
They were removed in favour of ComponentQuery, it's like DomQuery but for components!
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.