{ "id": "112093", "key": "TIMOB-13317", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2013-04-02T19:19:41.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [ { "id": "27340", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "112190", "key": "TIMOB-13365", "fields": { "summary": "Ti API: Make the templating system used for ListView general purpose", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "27262", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "112094", "key": "TIMOB-13318", "fields": { "summary": "Android - Allow ListView templates outside of ListView", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "27279", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "105799", "key": "TIMOB-13425", "fields": { "summary": "Ti.UI.create(): An applyProperties-like way to create a whole view hierarchy at once", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T20:04:06.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "It would be ideal to use the template concept for all titanium components, such as windows. For example:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\nvar template = {\r\n\ttype: 'Ti.UI.ScrollView',\r\n\tbindId: 'scrollView',\r\n\tproperties: {\r\n\t\twidth: Ti.UI.FILL,\r\n\t\theight: Ti.UI.SIZE,\r\n\t\tlayout: 'vertical'\r\n\t},\r\n\tchildTemplates: [\r\n\t\t{\r\n\t\t\ttype: 'Ti.UI.Button',\r\n\t\t\tbindId: 'last_button',\r\n\t\t\tproperties: {\r\n\t\t\t\ttitle: 'Button 11',\r\n\t\t\t\theight: Ti.UI.SIZE,\r\n\t\t\t\tleft: 20,\r\n\t\t\t\tright: 20,\r\n\t\t\t\ttop: 10\r\n\t\t\t},\r\n\t\t\tevents: {\r\n\t\t\t\t'click': onClick\r\n\t\t\t}\r\n\t\t}\r\n\t]\r\n};\r\n\r\nwin.addFromTemplate(template);\r\n\r\nvar scrollView = win.getViewFromBindId('scrollView');\r\n\r\nfunction onClick(e) {\r\n\tscrollView.backgroundColor = 'red';\r\n}\r\n\r\nwin.open();\r\n{code} ", "attachment": [], "flagged": false, "summary": "TiAPI: Allow ListView templates outside of ListView", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "245232", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4065", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-02T19:31:53.000+0000", "updated": "2013-04-02T19:31:53.000+0000" }, { "id": "295648", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We will revisit this at a later point when there is significant customer requests.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-04T22:39:51.000+0000", "updated": "2014-03-04T22:39:51.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }