Reuse of top level components and event handling
I am unclear of how to capture events from a linked top levelel component.
Sencha designer offers a nice way to reuse components, but I have not found any good documentation on how to add event handling on the instance.
I have found no way to add events to the instance in a view and not ether a way to do it on the controller for a specific instance.
A basic example is that I have a class that contains a list.
I reuse this class in multiple view by linking the class to my view.
When itemtap event is generated in the linked instance I like to handle this in my active view and consume the information in same way as I can do if I had defined this list within the view.
I have read documentation on MVC but not found a solution for this.
But it is very nice to only have one copy of this class and reuse it in all views.