{ "id": "145011", "key": "ALOY-1253", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "21028", "description": "", "name": "CLI Release 8.1.0", "archived": false, "released": true, "releaseDate": "2020-08-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-08-12T14:52:52.000+0000", "created": "2015-02-20T14:57:14.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "griffin-app", "merge-to-next", "view", "widgets", "wpath" ], "versions": [], "issuelinks": [], "assignee": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "updated": "2020-08-12T14:52:52.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": [ { "id": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "At the moment you cannot use WPATH in a widget's XML view. You need to set them via TSS. Which is OK, but some like to do so in XML, like they're used to do in HTML.\r\n\r\n*widget.js*\r\n{code:xml}\r\n\r\n\t\r\n\r\n{code}\r\n\r\n*compiled widget.js*\r\n{code:javascript}\r\n $.__views.image = Ti.UI.createImageView({\r\n image: \"WPATH('images/a.png')\",\r\n id: \"image\"\r\n });\r\n{code}\r\n\r\n*working widget.tss*\r\n{code:json}\r\n\"ImageView\": {\r\n image: WPATH('images/a.png')\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "Alloy: Support WPATH in widget XML view attribute values", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "Alloy 1.7.0-dev\r\nAlloy 1.5.1.GA", "comment": { "comments": [ { "id": "453193", "author": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "body": "Seems like maybe this one fell through the cracks. I will create a quick PR for it.", "updateAuthor": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "created": "2019-12-16T04:20:42.000+0000", "updated": "2019-12-16T04:20:42.000+0000" }, { "id": "453194", "author": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "body": "[~eharris] - Created PR: https://github.com/appcelerator/alloy/pull/948", "updateAuthor": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "created": "2019-12-16T04:23:37.000+0000", "updated": "2019-12-16T04:23:37.000+0000" }, { "id": "456164", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Test steps:\r\n\r\nGrab the [basic widget sample|https://github.com/appcelerator/alloy/tree/master/samples/apps/widgets/basic] and convert to use WPATH [here|https://github.com/appcelerator/alloy/blob/master/samples/apps/widgets/basic/widgets/com.foo.widget/views/image.xml#L2] instead of the widget ID\r\n\r\nAfter changing that it should function the same as before", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-07-20T11:13:10.000+0000", "updated": "2020-07-20T11:47:14.000+0000" }, { "id": "456439", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket, fix verified in CLI version 8.1.0-master.10, tested using the example widgets app. (https://github.com/brentonhouse/alloy-widget-test)\r\n\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-08-12T14:52:32.000+0000", "updated": "2020-08-12T14:52:32.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }