Hello,
I attached the event “onSwipeX” of component “UnitList”
How do I know which item id is swiped in this event?
Hello,
I attached the event “onSwipeX” of component “UnitList”
How do I know which item id is swiped in this event?
Please, help me, answer my question
Hello,
onSwipeX event handler takes 2 arguments - start and end context objects. Try to apply the following to get item id:
$$("myList").attachEvent("onSwipeX",function(context1,context2){
var htmlNode = context2.target;
var id = this.locate(htmlNode);
alert(id);
});