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.
To explane it a bit more.
I have a cardpanel containg a list and one form
The form has a field named projectId, that is updated when itemTap event is triggered in the list.
But If I now promote my list to be a Class, itemTap in list will not update my form anymore.
Yes it is simple to chnage the itemTap in the list to find the form and then update the field.
If I now add a new card panel that looks the same as the first on, and link my list into this card panel, I have a problem.
With linked classes there is no way to add an event to the instance.
So my problem is that I am reusing a tp level class in multiple other classes, and want to att an event to the instance of the list so it can update the corect form.