I am working with TableViewRow and i need to fire swipe event. TableViewRow doesn’t register itself with Swipe event. So, basically i wrapped all my content in a Container View and added it to TableViewRow. Also, i attached swipe event listner to it. And fortunately it is working.
But, i need to pass the current TableViewRow to some function from Swipe event. So, i wrote this code:
var tableViewRow = e.source.parent;
while(e.source.parent != TiUITableViewRow){
tableViewRow = tableViewRow.parent;
}
It throw the error that TiUITableViewRow variable not found. I even tried javascript typeOf function. Please suggest how to check the type of object?
the easiest way is to just set a property on the row and check for that property
in the eventListener