How would I go about adding tap/click listeners for generated items that are Ext.Containers? They are created in my onCarouselPainted function so they are child items of an Ext.Carousel (if you can imagine an MVC-based multi item carousel). Here is an item from the store (there are about 12 images. Here's 1):
I have an action property for each item, but I guess I could just as easily use the unique index number that I have as a reference for each thumbnail, but I'm not sure how to 'catch' or even listen for this, as the generated items are Ext.Components and the index and other info is stored as data in the store.
I've got it working with a list no problem with something like this, as the list has a built-in .on for the items:
var first_name = dataView.store.getAt(index).data.firstName;
var last_name = dataView.store.getAt(index).data.lastName;
The question is, how would I go about listening for the index number for a custom component in Sencha?
I've tried and am reasonably familiar with refs and actions and I've used these in the past but I'm not sure I can use these in this particular case.