[TIMOB-20074] Add an index identifier to ActionTypes in ListViews to better Identify the action clicked
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android, iOS |
Labels | Community, ListView, regression |
Reporter | Rene Pot |
Assignee | Unknown |
Created | 2015-11-02T14:06:19.000+0000 |
Updated | 2019-08-24T16:00:07.000+0000 |
Description
Currently, custom ActionTypes trigger an event, and the action provided with the event is the _Title_ of the ActionType.
However, when having more than 1 translation, you would need to compare it to the translation for the ActionType to identify which action has been clicked. There should be a unique parameter that can be passed along.
This is also not in line with other elements in Titanium, like dialogs, that return the index of the clicked item, and not the title. It should be the same here
Currently:
function actionTypeClickEventHandler(e){
if (e.action == L('Cancel'){};
}
Should be something like this, which is in line with Dialogs and confirm boxes.
function actionTypeClickEventHandler(e){
if (e.actionIndex === 0){};
}
No comments