{ "id": "176089", "key": "ALOY-1746", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "21193", "name": "CLI Release 9.0.0", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-06-16T14:06:49.000+0000", "created": "2021-03-01T18:35:15.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [ { "id": "59219", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "175960", "key": "TIMOB-28317", "fields": { "summary": "TiAPI: Add Ti.UI.OptionBar", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2021-06-16T14:06:49.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "h5.Description\r\n\r\nTIMOB-28317 adds support for a new Ti.UI.OptionBar element, this should be mirrored in Alloy so that it's usable easily\r\n\r\nIt should only be useable for apps using SDK 10 or higher, it maybe should have a similar API to where it allows Children elements that will be mapped to the labels property a la Ti.UI.ButtonBar\r\n\r\nAn API that matches the ButtonBar usage:\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n* -The {{selected}} property will set the {{index}} property on the UI element to that option, it should warn if multiple have it set- The index should either be set on the OptionBar directly or programatically on open\r\n* The {{image}} property will change the entry for that option to be a label like \r\n** Question, is setting an image all or nothing or can an individual element set it? *Individual elements can specify an image, on iOS setting an image will cause the text to not be shown*\r\n{code}\r\n{ image: , label: