1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    10
    Vote Rating
    0
    jarobi is on a distinguished road

      0  

    Default Getting Values from Config

    Getting Values from Config


    Is there another way to get the Values. For example:

    A Panel includes 2 Fieldset and each Fieldset has a textarea and displyafield

    Panel (id:'panel')
    ....fieldset ( id :'fieldset1')
    ........textarea1 (id:'txt1')
    .......displayfield1(id: 'd1')
    ...fieldset ( id :'fieldset2')
    .......textarea2 (id:'txt2')
    ......displayfield2 (id: 'd2')

    Ext.getCmp('panel').items.items[0].items.items[0]

    So im getting "textarea1". But i dont want use Indexes and i dont want go directly to the element( Ext.getCmp(txt1)), im searching something like this:
    Ext.getCmp('panel').items.items.get('textarea1').items.items.get('txt1')

  2. #2
    Sencha - Services Team arthurakay's Avatar
    Join Date
    Sep 2008
    Location
    Antioch, IL
    Posts
    1,353
    Vote Rating
    33
    arthurakay is a jewel in the rough arthurakay is a jewel in the rough arthurakay is a jewel in the rough

      0  

    Default


    Use the component query:
    - http://docs.sencha.com/ext-js/4-0/#!...ComponentQuery

    Using getCmp() is not recommended for production code (as it relies on DOM IDs), and "items.items.items[0]" is (1) ugly and (2) unreliable.

    Every component has methods like child(), down() etc. that use the ComponentQuery.
    Arthur Kay
    Developer Relations Manager, Sencha Inc.

    Twitter | Sencha Chicago User Group

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