Results 1 to 6 of 6

Thread: Ext.queryCmp

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,377
    Vote Rating
    720
      -1  

    Default Ext.queryCmp

    Would it be possible to add Ext.queryCmp() as a shortcut for Ext.ComponentQuery.query()?

    Code:
    var panelsArray = Ext.ComponentQuery.query('panel'); // long form
    var panelsArray = Ext.queryCmp('panel'); // shortcut

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1381
      0  

    Default

    I personally don't think this is needed. You have the up, down and query methods on each Component that should suffice for almost every situation.
    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

  3. #3
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,377
    Vote Rating
    720
      -2  

    Default

    OK... Search the Ext code base... Ext.ComponentQuery.query is used in many places... if you used the shorter form, you could save a few bytes

  4. #4
    Ext JS Premium Member
    Join Date
    Sep 2007
    Location
    CT
    Posts
    462
    Vote Rating
    4
      0  

    Default Managers

    Agree with Les,

    For consistency and the same reason Ext.getStore exists.

    Also why is it not part of ComponentManager in a method called query?
    Wouldn't that make it more consistent with the other managers storeManager, windowManager, etc..?

  5. #5
    Sencha User
    Join Date
    Jan 2008
    Posts
    15
    Vote Rating
    0
      0  

    Default

    I agree, this is needed.

  6. #6
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,377
    Vote Rating
    720
      -2  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    I personally don't think this is needed. You have the up, down and query methods on each Component that should suffice for almost every situation.

    Looks like this mapping is now available in Ext JS 6.

    Ext.all

Posting Permissions

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