{ "id": "159272", "key": "ALOY-1488", "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": [], "resolution": { "id": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2016-04-05T13:40:52.000+0000", "created": "2016-04-03T17:46:22.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "hyperloop" ], "versions": [], "issuelinks": [], "assignee": { "name": "batman", "key": "batman", "displayName": "Bruce Wayne", "active": true, "timeZone": "America/New_York" }, "updated": "2016-04-05T13:40: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": "I know it's a pretty big thing, but we should at least file it now to discuss it. This ticket is about the idea to support Hyperloop-based Views with Alloy. Example:\r\n\r\n{code:javascript}\r\nvar view = new UIView();\r\nview.setBackgroundColor(UIColor.redColor());\r\nview.setFrame(CGRectMake(20,20,300,300));\r\n{code}\r\nwould become:\r\n{code:xml}\r\n\r\n \r\n\r\n{code}\r\n{code:tss}\r\n\".myView\": {\r\n backgroundColor: UIColor.redColor,\r\n frame: CGRectMake(20,20,300,300)\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "Alloy Hyperloop in Alloy XML views", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "381386", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "/cc [~fokkezb]", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-03T17:47:01.000+0000", "updated": "2016-04-03T17:47:01.000+0000" }, { "id": "381729", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I'm not sure if I'd be a fan of this. How would Alloy know if a tag is for Titanium or HL? I'd like to remove some of the magic from Alloy for 2.0, not add more.\r\n\r\nI think best practice for HL should be to build (cross-platform) factory libraries that in Alloy you'd then simply use via the existing {{module}} attribute.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-04-05T11:09:52.000+0000", "updated": "2016-04-05T11:09:52.000+0000" }, { "id": "381744", "author": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "body": "You can already create custom tags in Alloy that link to Hyperloop code. I am MUCH more in favor of that approach vs what is mentioned below. [~fokkezb]'s comments are accurate.\r\n\r\nSee my gist on how to do this.\r\n\r\nhttps://gist.github.com/grantges/1c5df7f7b0eada2c4610\r\n", "updateAuthor": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "created": "2016-04-05T13:37:39.000+0000", "updated": "2016-04-05T13:37:39.000+0000" }, { "id": "381745", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Closing this issue, since it's already possible with the suggested Alloy tags. We need some documentation around it, but that's fine. Thanks [~bgrantges@appcelerator.com]!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-05T13:40:52.000+0000", "updated": "2016-04-05T13:40:52.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }