{ "id": "109834", "key": "ALOY-522", "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": "15402", "description": "Alloy 1.2.0, concurrent with SDK 3.1.0", "name": "Alloy 1.2.0", "archived": false, "released": true, "releaseDate": "2013-08-15" }, { "id": "15405", "description": "2013 Sprint 08", "name": "2013 Sprint 08", "archived": true, "released": true, "releaseDate": "2013-04-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-04-12T23:03:10.000+0000", "created": "2013-02-17T08:09:07.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "notable", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "30087", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "inwardIssue": { "id": "116951", "key": "TIDOC-1191", "fields": { "summary": "APIDoc/Guides: Alloy 1.2.0 New Features", "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": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "25917", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "108662", "key": "ALOY-490", "fields": { "summary": "Allow native modules to be added in markup", "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": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-22T13:21:14.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": "If you want to use Alloy to load a custom view from a module, you have to do it in JavaScript manually in your controller and add to the view hierarchy. Would be nice to be able to do it with XML. (request from TiTokyo)\r\n\r\nPR - https://github.com/appcelerator/alloy/pull/110\r\n\r\nThis will be implemented as such\r\n\r\n{code:xml}\r\n\r\n\t\r\n\t\t \r\n\t\t\r\n\t\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "Allow to load custom view from a module", "creator": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "246823", "author": { "name": "viezel", "key": "viezel", "displayName": "Mads Moller", "active": true, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "viezel", "key": "viezel", "displayName": "Mads Moller", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-10T06:37:03.000+0000", "updated": "2013-04-10T06:37:03.000+0000" }, { "id": "247370", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolved in: https://github.com/appcelerator/alloy/commit/c82e238d868a9ef3c96c653a96104f82d49111a9", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-12T23:03:10.000+0000", "updated": "2013-04-12T23:03:10.000+0000" }, { "id": "247371", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "And yes Mads, the tag will be an alias for a special , meaning it will not return a controller, but instead an actual view allowing you to add children as you would expect.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-12T23:04:18.000+0000", "updated": "2013-04-12T23:04:18.000+0000" }, { "id": "247405", "author": { "name": "viezel", "key": "viezel", "displayName": "Mads Moller", "active": true, "timeZone": "Europe/Berlin" }, "body": "Sweet!", "updateAuthor": { "name": "viezel", "key": "viezel", "displayName": "Mads Moller", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-13T07:16:30.000+0000", "updated": "2013-04-13T07:16:30.000+0000" }, { "id": "254851", "author": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "body": "seeing an error with this:\n\nAlloy 1.1.3-alpha\n\nXML:\n\n\nGenerated Javascript: \n$.__views.glView = Ti.UI.createModule({\n version: 1,\n backgroundColor: \"#aaa\",\n top: 10,\n left: 10,\n width: 300,\n height: 420,\n depthbuffer: false,\n multisampling: false,\n src: \"ti.opengl\",\n id: \"glView\"\n });\n\nNote that its trying to reference an unknown function createModule vs the expected require / createView.\n ", "updateAuthor": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "created": "2013-05-30T16:06:50.000+0000", "updated": "2013-05-30T16:06:50.000+0000" }, { "id": "254857", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~bgrantges] you're using the wrong version of Alloy. This isn't available until 1.2.0, as per the fix version of the ticket.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-30T16:21:22.000+0000", "updated": "2013-05-30T16:21:22.000+0000" }, { "id": "254866", "author": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "body": "My bad Tony - misread that as 1.1.2 - I will await the release! Thanks", "updateAuthor": { "name": "bgrantges@appcelerator.com", "key": "bgrantges", "displayName": "Bert Grantges", "active": false, "timeZone": "America/Chicago" }, "created": "2013-05-30T16:50:27.000+0000", "updated": "2013-05-30T16:50:27.000+0000" }, { "id": "262933", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sample code available here: https://github.com/appcelerator/alloy/tree/master/test/apps/advanced/native_modules\n\nVerified working as expected.\n\nEnvironment:\n\nTitanium SDK 3.1.2.v20130718094558\nAppcelerator Studio 3.1.2.201307191853\nAlloy 1.2.0\n\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-24T01:07:40.000+0000", "updated": "2013-07-24T01:07:40.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }