【发布时间】:2012-08-01 05:56:54
【问题描述】:
我有一个 tableView 有一些带有标签的行。我想在特定行上长按/滑动时删除行。我已经为 tableView 添加了长按事件,但它的回调方法将参数重新设置为 tableViewRow 中的标签。
如何获取所选行的索引???
table.addEventListener('longpress', function(e) {
alert(e.source); //showing LabelProxy@2389hf
});
【问题讨论】:
-
只能在 iOS 中使用 tableview 的可编辑属性,而不能在 Android 中使用。
标签: android mobile view titanium tableview