1. #1
    Sencha User omar.belkhodja's Avatar
    Join Date
    Sep 2007
    Location
    Tunisia
    Posts
    32
    Vote Rating
    0
    omar.belkhodja is on a distinguished road

      0  

    Default About controller references

    About controller references


    Hello,

    I have created a main class base on a Panel, in which I have placed a View (DataView). Then I have created an instance of the main class into a viewport and I provided an Id to the instance (lets say mainpanel).

    Now I'm creating a controller, and I want to create a reference to the DataView that is within the Panel. If it was the Panel, I would have used #mainpanel, but I need to make a reference to the something within the mainpanel.

    Does anyone know how to do this ?

    Thanks !
    You have to know before dreaming !

  2. #2
    Sencha User omar.belkhodja's Avatar
    Join Date
    Sep 2007
    Location
    Tunisia
    Posts
    32
    Vote Rating
    0
    omar.belkhodja is on a distinguished road

      0  

    Default


    I think I have found an answer. I have used

    #mainpanel > dataview
    You have to know before dreaming !

  3. #3
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,266
    Vote Rating
    121
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    The above component query says find the component (of any type with an id of "mainpanel"), then find any direct children of that that component that are a dataview.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 1