1. #1
    Sencha User joevelardi's Avatar
    Join Date
    Mar 2010
    Location
    Australia
    Posts
    38
    Vote Rating
    0
    joevelardi is on a distinguished road

      0  

    Default Using itemId & getComponent in a nested layout

    Using itemId & getComponent in a nested layout


    Hi, moving away from Ext.getCmp to using getComponent.

    Have read the forums and API docs but haven't been able to obtain the nested object.

    Code:
    var fsFrequency = new Ext.form.FieldSet({
      title: 'Frequency',
      defaults: { hideLabel: true, disabled: true },
      items: [ { itemId: 'cbxFrequencies',
                 xtype: 'checkboxgroup',
                 columns: 3,
                 items: [ { itemId: 'freqWeekly',
                            boxLabel: 'Weekly'
                        },{ itemId: 'freqMonthly',
                            boxLabel: 'Monthly'
                        },{ itemId: 'freqQuarterly',
                            boxLabel: 'Quarterly'
                        } ]
         } ]
    });
    i have used the following to access the child object;
    Code:
    fsFrequency.getComponent('cbxFrequencies').disable();
    ... but how do i access `freqWeekly` ..

    Joe

  2. #2
    Sencha - Support Team israelroldan's Avatar
    Join Date
    Nov 2011
    Location
    Den Haag, Netherlands
    Posts
    164
    Vote Rating
    16
    israelroldan will become famous soon enough

      0  

    Default


    Since checkboxgroup is not a container, the only way to access its items would be like this:
    Code:
    fsFrequency.getComponent('cbxFrequencies').items
    Per the docs, getComponent returns a Component, which is the case of checkboxgroup.
    Israel Roldàn | Senior Support Engineer

  3. #3
    Sencha User joevelardi's Avatar
    Join Date
    Mar 2010
    Location
    Australia
    Posts
    38
    Vote Rating
    0
    joevelardi is on a distinguished road

      0  

    Default


    Thanks Israel, this has worked fine.

    In cases where i am nesting container components, what is the best method to attain these nested child components ?

    Joe

  4. #4
    Sencha - Support Team israelroldan's Avatar
    Join Date
    Nov 2011
    Location
    Den Haag, Netherlands
    Posts
    164
    Vote Rating
    16
    israelroldan will become famous soon enough

      0  

    Default


    You can use getComponent() on any container just like you're doing to retrieve cbxFrequencies.
    Israel Roldàn | Senior Support Engineer

Thread Participants: 1

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