@titanium/turbo
Version:
<p align="center"> <img src="https://cdn.secure-api.org/images/turbo-title_400.png" /><br> <a href="https://www.npmjs.com/package/@titanium/turbo"> <img src="https://img.shields.io/npm/v/@titanium/turbo.png" /> </a> </p>
12 lines (10 loc) • 364 B
JavaScript
function onItemClick(e) {
// get the clicked section
var section = $.list.sections[e.sectionIndex];
// get the clicked item from that section
var item = section.getItemAt(e.itemIndex);
// print the item's title
Ti.API.info('sectionIndex: ' + e.sectionIndex);
Ti.API.info('itemIndex: ' + e.itemIndex);
Ti.API.info('itemclick: ' + item.properties.title);
}