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,867
    Vote Rating
    532
    LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future

      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,165
    Vote Rating
    1253
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    1,867
    Vote Rating
    532
    LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future

      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
    ValterBorges is on a distinguished road

      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
    14
    Vote Rating
    0
    sarimarton is an unknown quantity at this point

      0  

    Default

    I agree, this is needed.

  6. #6
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    1,867
    Vote Rating
    532
    LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future LesJ has a brilliant future

      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