{ "id": "152578", "key": "TIMOB-20074", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2015-11-02T14:06:19.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "Community", "ListView", "regression" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-08-24T16:00:07.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Currently, custom ActionTypes trigger an event, and the action provided with the event is the _Title_ of the ActionType.\r\n\r\nHowever, 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.\r\n\r\nThis 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\r\n\r\nCurrently:\r\n{code:javascript}\r\nfunction actionTypeClickEventHandler(e){\r\n if (e.action == L('Cancel'){};\r\n}\r\n{code}\r\nShould be something like this, which is in line with Dialogs and confirm boxes. \r\n{code:javascript}\r\nfunction actionTypeClickEventHandler(e){\r\n if (e.actionIndex === 0){};\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "Add an index identifier to ActionTypes in ListViews to better Identify the action clicked", "creator": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Alloy + TiSDK 5.0/5.1", "comment": { "comments": [], "maxResults": 5, "total": 5, "startAt": 0 } } }