alloy
Version:
TiDev Titanium MVC Framework
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);
}