{ "id": "141845", "key": "ALOY-1213", "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": [], "resolution": null, "resolutiondate": null, "created": "2014-12-18T06:42:06.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "TCSupport" ], "versions": [], "issuelinks": [], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2015-01-05T15:57:42.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": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" }, { "id": "13603", "name": "Styling", "description": "TSS, dynamic styling, styling API" } ], "description": "h5. Present behaviour\r\n{code}\r\n var imageView = $.UI.create(\"ImageView\",{\r\n apiName: \"ImageView\",\r\n classes: [\"profile-img\"],\r\n id: \"profileImg\"\r\n});\r\nimageView.image = \"url\";\r\n{code}\r\n\r\nImage url will be dynamic, so good to make a way to pass it at creation.\r\n\r\nh5. Expected behaviour\r\n{code}\r\n var imageView = $.UI.create(\"ImageView\",{\r\n apiName: \"ImageView\",\r\n classes: [\"profile-img\"],\r\n id: \"profileImg\",\r\n properties: {\r\n image: \"url\"\r\n }\r\n});\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Alloy.Controller.UI.create - Option to pass properties", "creator": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "environment": null, "comment": { "comments": [ { "id": "337037", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Original Reporter: [~mano_mykingdom]", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-12-18T19:42:18.000+0000", "updated": "2014-12-18T19:42:18.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }