Hi,
I have a button in each row of a tableView. When the user completes a taks, he/she clicks on the buttons.
For onRowTouch, the listening function can use the target.index
Like so
local function RowTouch(e) local row = e.target print(row.index) end
and will print out the index (ignore phases for now).
When I am rendering my tableview, I am adding the button to each row rendered -that is not a category.
Like so.
if (row.isCategory == false) then local btncheck = widget.newButton({ label = "check", left = display.contentWidth-80, width = 75, onEvent = btncheck\_clicked }) row:insert(btncheck) end
so - in my function btncheck_clicked(), how do I get the current row?
Thanks.
Herb