Hybrid View

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    125
    Answers
    1
    Vote Rating
    0
    oddz is on a distinguished road

      0  

    Default Answered: Does id exist as a config option for Ext.Component anymore?

    Answered: Does id exist as a config option for Ext.Component anymore?


    Does id exist as a config option for Ext.Component anymore?

    * The reason I ask is that unless I'm blind it doesn't seem to be documented.

    Thanks

  2. A Component's id is determined during instantiation and it can't be changed afterwards (immutable), hence a setId() method doesn't make sense, and that's why 'id' is a not a general config.

    There's two common ways a Component gets its custom id: either via the given 'id' class property of your custom view, or via the 'id' config property (only) during instantiation, e.g:

    Code:
    new Ext.Button({
       id: 'myButton',
       text: 'Foo'
    });

  3. #2
    Sencha User
    Join Date
    Sep 2011
    Posts
    125
    Answers
    1
    Vote Rating
    0
    oddz is on a distinguished road

      0  

    Default


    lol... n/m

    of course... it's a property of the class, not part of the config, duh.

  4. #3
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Answers
    28
    Vote Rating
    10
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    It seems like it should actually be a config as well as a property. Creating a ticket for this.

  5. #4
    Sencha - Sencha Touch Dev Team Jacky Nguyen's Avatar
    Join Date
    Jul 2009
    Location
    Palo Alto, California
    Posts
    469
    Answers
    24
    Vote Rating
    14
    Jacky Nguyen has a spectacular aura about Jacky Nguyen has a spectacular aura about

      0  

    Default


    A Component's id is determined during instantiation and it can't be changed afterwards (immutable), hence a setId() method doesn't make sense, and that's why 'id' is a not a general config.

    There's two common ways a Component gets its custom id: either via the given 'id' class property of your custom view, or via the 'id' config property (only) during instantiation, e.g:

    Code:
    new Ext.Button({
       id: 'myButton',
       text: 'Foo'
    });
    Sencha Touch Lead Architect

Thread Participants: 2

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..."