[TIMOB-15417] Feature request to add x, y coordinates to item clickevent in list view...
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | click, event, itemclick, listview, timob |
Reporter | Henry David Spells III |
Assignee | Unknown |
Created | 2013-09-10T05:17:08.000+0000 |
Updated | 2018-02-28T20:03:54.000+0000 |
Description
I would like to be passed the x, y coordinates into the itemclick event (in the same way that the click event passes in x,y coordinates) for a ListView. I want to be able to simulate a custom control by clicking on an item in the ListView and bringing up a transparent window with my control on top of the item that I clicked on. However, I don't know where to place the control if I don't have the x, y coordinates. This is especially difficult if the window scrolls.
When I first wrote the bug, I had tested this on iOS and by looking at the document I thought that 'accessoryClicked' was the only field that was not common to both Android and iOS. In the debugger I found out that bindId is not passed in the itemclick event parameters on Android but x and y coordinates are passed in the event. Can I get both bindId and x,y coordinates passed into the event on both platforms? Also, can you update the documentation so that it at least correctly states the parameters being passed in?
When I first wrote the bug, I had tested this on iOS and by looking at the document I thought that 'accessoryClicked' was the only field that was not common to both Android and iOS. In the debugger I found out that bindId is not passed in the itemclick event parameters on Android but x and y coordinates are passed in the event. Can I get both bindId and x,y coordinates passed into the event on both platforms? Also, can you update the documentation so that it at least correctly states the parameters being passed in? As a separate but very related question. Is there an existing mechanism to get the bindId from the x, y coordinates and the ListView / ListItem? I don't want to reinvent the wheel if I don't need to.