Results 1 to 2 of 2

Thread: Can't set listeners in Container.defaults?

  1. #1

    Default Can't set listeners in Container.defaults?

    the "listeners" entry can be added to each of the embedded item but the handlers just can't be invoked. (p.s. the event I want to handle is supported by all the items in my case)

    I compared the item object in firebug, it looked different from when "listeners" is explicitely specified along with its other options. I thought in the latter way, the handler could be registerred to the "events" property of this object, while if specified in container's defaults, this registration wouldn't be made.

    Does any one have any idea on this problem? I failed to google anything about it. Thank you.

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    It will work if you are adding a config object with an xtype, but not if you add an instantiated Component.

Posting Permissions

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