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
    1,932
    Vote Rating
    548
      0  

    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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      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
    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

  3. #3
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    1,932
    Vote Rating
    548
      0  

    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
    1,932
    Vote Rating
    548
      0  

    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
  •