Results 1 to 3 of 3

Thread: Ext.getCmp with lid

  1. #1
    Sencha Premium Member
    Join Date
    Apr 2012
    Location
    Lyon (France)
    Posts
    10
    Vote Rating
    0
      0  

    Default Answered: Ext.getCmp with lid

    Hi,
    In MVC mode, we must use lid instead of id but Ext.getCmp works with id.
    So, how can I retrieve a field using it's lid property ?

  2. Use ComponentQuery:

    Code:
    'container[lid=someVal]'
    container is the xtype, someVal is the value on the lid property.

  3. #2
    Sencha - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,023
    Answers
    3976
    Vote Rating
    1364
      0  

    Default

    Use ComponentQuery:

    Code:
    'container[lid=someVal]'
    container is the xtype, someVal is the value on the lid property.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  4. #3
    Sencha Premium Member
    Join Date
    Apr 2012
    Location
    Lyon (France)
    Posts
    10
    Vote Rating
    0
      0  

    Default

    Cool, thanks !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •