{ "id": "152471", "key": "TIMOB-19827", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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-10-29T14:14:35.000+0000", "priority": null, "labels": [ "android", "ios", "optiondialog" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-10-03T11:07:55.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": "It is currently not possible to use image options inside the {{Ti.UI.OptionDialog}}. The proposal is to introduce support those by making the {{options}} property ready to hold either string- or object-values. That needs changes on both iOS and Android to achieve parity.\r\n\r\n*Proposal*: \r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"#fff\"\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: \"Show dialog\"\r\n});\r\n\r\nwin.add(btn);\r\nbtn.addEventListener(\"click\", function() {\r\n var dia = Ti.UI.createOptionDialog({\r\n options: [{\r\n title: \"Appcelerator\",\r\n image: \"appcelerator_small.png\"\r\n }, {\r\n title: \"Another option\"\r\n }, {\r\n title: \"Cancel\",\r\n }],\r\n cancel: 2\r\n\t});\r\n\tdia.show();\r\n});\r\nwin.open();\r\n{code}", "attachment": [ { "id": "57182", "filename": "destefanoflavio_2015-ott-29.jpg", "author": { "name": "kopiro", "key": "kopiro", "displayName": "Flavio De Stefano", "active": true, "timeZone": "Europe/Rome" }, "created": "2015-10-29T14:14:30.000+0000", "size": 28828, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Allow object type in Ti.UI.OptionDialog.options", "creator": { "name": "kopiro", "key": "kopiro", "displayName": "Flavio De Stefano", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "kopiro", "key": "kopiro", "displayName": "Flavio De Stefano", "active": true, "timeZone": "Europe/Rome" }, "environment": null, "comment": { "comments": [ { "id": "368304", "author": { "name": "kopiro", "key": "kopiro", "displayName": "Flavio De Stefano", "active": true, "timeZone": "Europe/Rome" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/7374", "updateAuthor": { "name": "kopiro", "key": "kopiro", "displayName": "Flavio De Stefano", "active": true, "timeZone": "Europe/Rome" }, "created": "2015-10-29T14:43:51.000+0000", "updated": "2015-10-29T14:53:20.000+0000" }, { "id": "368343", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Moved to TIMOB, added example code and a description.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-10-29T20:46:08.000+0000", "updated": "2015-10-29T20:46:08.000+0000" }, { "id": "368671", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Pausing this issue for now after discussing with [~kopiro] that we should wrap the image options as part of a refactoring that includes an object instead of string values inside the options property.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-02T17:44:25.000+0000", "updated": "2015-11-02T17:44:25.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }