Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Bubbling Table Click Event - Titanium Alloy

$
0
0

Hi

I have a button within a row within a table.

I have added an event listener to the whole table within the controller.

What I need is away of determining the button that was clicked and the row index that the button is contained within.

I can get the button id by doing e.source.id and I can get the row by doing e.row, which returns the row object but when I try and retrieve the row index doing e.row.index I receive undefined.

Can I specifically add an index to a row within the XML or am I accessing the index incorrectly?

Any help would be greatly appreciated

Thanks


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>