Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jun 2016
    Posts
    21
    Vote Rating
    -9
    tsensuous.grace is on a distinguished road

      0  

    Default How to get the xtype of an instantiated component in EXT-3?

    I'm trying to get the component using its xtype:

    Code:
    Ext.ComponentQuery.query('xtype')
    that throws error" Cannot read property 'query' of undefined"
    the 'Ext.ComponentQuery' is undefined din EXT3. Is there any alternative to get the component using the xtype?

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    9,255
    Vote Rating
    251
    Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of Gary Schlosberg has much to be proud of

      0  

    Default

    You should be able to do it with the actual xtype rather than the word 'xtype', such as:
    Code:
    Ext.ComponentQuery.query('panel');
    UPDATE: Not sure that this will work with Ext 3.


    Join me at SenchaCon 2016!

  3. #3
    Sencha User
    Join Date
    Jun 2016
    Posts
    21
    Vote Rating
    -9
    tsensuous.grace is on a distinguished road

      0  

    Default

    I tried that too with the actual xtype name, but Ext.QueryComponent returns undefined. not sure if this is meant for EXT-3.

Similar Threads

  1. set flex for fully instantiated component in Container Panel
    By nish1013 in forum Sencha Touch 1.x: Q&A
    Replies: 1
    Last Post: 11 Apr 2012, 6:22 AM
  2. Load data into form instantiated by xtype
    By mcruise in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 18 Aug 2011, 10:34 AM
  3. Replies: 4
    Last Post: 13 Apr 2011, 12:48 AM
  4. Finding out which ExtJS class a component is instantiated from
    By psainsbury in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 5 Aug 2009, 8:20 AM

Thread Participants: 1