-
24 Aug 2012 10:18 AM #1
Answered: Access event data in Controller's listener
Answered: Access event data in Controller's listener
How do I access event data when using a Controller to respond to events? Example:
Code:Ext.define('fooapp.controller.Main', { extend: 'Ext.app.Controller', config: { control: {'#bar-list': {select: 'selectBarItem'}} }, selectBarItem: function() { // Do something based on which barItem was selected in bar-list } });
-
Best Answer Posted by jerome76
It should pass the same parameters over into your custom function. So whatever parameters are passed in the 'select' event, you should be able to use those in your selectBarItem function.
-
24 Aug 2012 10:41 AM #2
It should pass the same parameters over into your custom function. So whatever parameters are passed in the 'select' event, you should be able to use those in your selectBarItem function.


Reply With Quote