1. #1
    Ext JS Premium Member smokeman's Avatar
    Join Date
    Jul 2007
    Posts
    475
    Vote Rating
    2
    smokeman is on a distinguished road

      0  

    Default controller references

    controller references


    sorry to be a newb!
    We are considering purchasing architect, and I tried to lay out a sample application this weekend.
    I caught on to everything, but references in a controller. I was able to bind an action to a button, and onclick, fire an error.log event. I tried to add a reference, then error.log the reference, and I'm getting a not defined firebug message.

    say I have a panel, with an id of 'MyFirstPanel', defined in the initial viewport.
    then I want to get a reference to that panel, and call it panelRef, so I can do a panelRef.add(childItem)
    why can I not add reference, and define ref as panelRef, and selector as MyFirstPanel?
    am I missing something?
    isn't that supposed to be the panel's id in selector?

    I was thinking that would accomplish what I was used to doing in ext3, with ext.getCmp('MyFirstPanel').add(childItem)

  2. #2
    Ext JS Premium Member smokeman's Avatar
    Join Date
    Jul 2007
    Posts
    475
    Vote Rating
    2
    smokeman is on a distinguished road

      0  

    Default


    I did find that this is supposed to use Componentquery, but I don't understand how to reference defined components in this manner at all. i tried several tests, such as selector: mainViewport > #MyFirstPanel
    tried with .MyFirstPanel, and without the .,

    Can someone explain the heiarchy in use here?
    I read mvc part 3, and componentquery docs, and I'm still lost. Ext.getCmp still worked, so I used that for now.

    since this is "architect", shouldn't there be a gui way to simply add a component as a reference in a controller?

  3. #3
    Ext JS Premium Member smokeman's Avatar
    Join Date
    Jul 2007
    Posts
    475
    Vote Rating
    2
    smokeman is on a distinguished road

      0  

    Default bump

    bump


    no comments so bump!

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi