i'm using xui in a photegap project as it's going pretty well except that, when using the swipe plugin, I can't find a way to get the tapped element id attribute.
The callback that you pass into the swipe method gets passed the touch event object as the first parameter.
As such, you can check out the Touch Event documentation, especially the touches array of Touch objects; these Touch objects have a target attribute that gives you a direct reference to the element that the touch event started on.
The callback that you pass into the
swipemethod gets passed the touch event object as the first parameter.As such, you can check out the Touch Event documentation, especially the
touchesarray ofTouchobjects; theseTouchobjects have atargetattribute that gives you a direct reference to the element that the touch event started on.