Is there a way to query “up”? I’m in a Component and want to register listeners to it’s parents events with control(). This requires a Query which gets me the parent of my main view.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In ExtJS4, you can use ‘up()’ from an Ext Element.
The params are a string of the parent element you wish to find e.g:
If you provide some details about the structure of your components/elements I can give a specific example which should fit.
EDIT: To show going ‘up’ from a component