Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7683399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:46:58+00:00 2026-05-31T18:46:58+00:00

I have a set of Controller/View that are composed dynamically, each one have a

  • 0

I have a set of Controller/View that are composed dynamically, each one have a “selector” list and a “container”, such container can have another selector+container pair, and so on. Which are instances of the same root selector+container Controller.

This is the heading definition of the Controller (the abstract class):

Ext.define('MyApp.controller.explorer.Base', {
    extend: 'Ext.app.Controller',
    refs: [
        {ref: 'explorerContainer', selector: '[itemId="explorerContainer]'},
        {ref: 'explorerSelector', selector: '[itemId="explorerSelector]'}
    ],

The thing is I don’t know what should be the ComponentQuery selector to match only the child elements of my controller with such itemId. Because by using [itemId=”explorerContainer”] to match the component it does so globally, answering the top-most container in the composition tree.

In previous experiments I did with ExtJS 3 I accessed child elements by means of myComponent.getComponent(‘…’), but now there’s no getComponent() and I could’n find an equivalent in ExtJS 4.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T18:47:00+00:00Added an answer on May 31, 2026 at 6:47 pm

    You are mixing a bit controllers with views in your question. For example “child elements of my controller”. The controller is not a component – just an observer of events. Views have children components, etc.

    You need to get a little bit more familiar with Ext.ComponentQuery class. You can experiment with it in Firebug on your app or demo pages. You just pop open firebug console and type Ext.ComponentQuery.query('panel') – then replace panel with whatever you think is the right expression and test it out. If you install Illuminations For Developers plugin – you will get Ext components back instead of generic JS objects – this is tremendously helpful.

    Docs have some examples of queries: http://docs.sencha.com/ext-js/4-0/#!/api/Ext.ComponentQuery . You’ll find the “>” symbol restricts query to immediate children.

    Hope this helps. If not post some more of your code and we can help you create some selectors.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a container view controller, that adds 3 set view controller's views to
I have a modal view controller that attempts to set an flag (an NSNumber
In my application I'm using a Navigation Controller to push one view that loads
I have a modal view controller that is presented from my main view, I
I have a view containing a segmented controller and a UIDatePicker that only shows
I have created a grid view that displays six cells of content. In each
I have a set of drop down controls on a view that are linked
I am trying to set blockUI message to display controller action view. I have
I have set up some gesture recognition in an app that I'm building. One
I have a view controller that i'm trying to push onto the navigation stack.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.