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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,751
    Answers
    3953
    Vote Rating
    1304
      0  

    Default

    Use ComponentQuery:

    Code:
    'container[lid=someVal]'
    container is the xtype, someVal is the value on the lid property.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •