Results 1 to 9 of 9

Thread: query a component for its events

  1. #1
    Sencha User
    Join Date
    Oct 2007
    Posts
    585
    Vote Rating
    0
      0  

    Default query a component for its events

    Is there some way (maybe related to reflection) by which you can get an Ext component to dump out its own events?

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    What do you mean dump out it's events?
    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 User
    Join Date
    Oct 2007
    Posts
    585
    Vote Rating
    0
      0  

    Default

    yes, dump out its events. and maybe even dump out its properties and methods.

  4. #4
    Sencha User
    Join Date
    Oct 2007
    Posts
    585
    Vote Rating
    0
      0  

    Default

    what I mean is print out all events as a comma delimited string. Or any other representation that can be parsed.

  5. #5
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    There isn't a way besides what's in the API docs. The issue is classes extend other classes so one class may not know about events or methods or configs it has from a superclass
    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

  6. #6
    Sencha User
    Join Date
    Oct 2007
    Posts
    585
    Vote Rating
    0
      0  

    Default

    That's quite all right. Forget the super class. How would you get a list of the events originating from the subclass itself?

  7. #7
    Sencha User
    Join Date
    Oct 2007
    Posts
    585
    Vote Rating
    0
      0  

    Default

    so, are you suggesting we can query the js class for its direct events? not including inherited ones? Please give me a hint how to do that.

  8. #8
    Sencha User
    Join Date
    Oct 2007
    Posts
    585
    Vote Rating
    0
      0  

    Default

    Mitchell

    You opened the door with your comment that the issue is in inherited events. If there is no way to probe a component class, could you please state so, then I will give up going this route.

    Thanks

    Bruce

  9. #9
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    There isn't a way without getting them from JSDuck (API Docs)
    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

Posting Permissions

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