{ "id": "168737", "key": "TIMOB-24919", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": [ { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-07-07T18:38:12.000+0000", "created": "2017-07-03T12:09:22.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "19572", "description": "Important fixes for 6.1.0", "name": "Release 6.1.1", "archived": false, "released": true, "releaseDate": "2017-06-16" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-09T18:46:08.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "- Add support for setting template item events using the {{template.events}} property\r\n\r\n*TEST CASE*\r\n{code:js}\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'white' }),\r\n list = Ti.UI.createListView({\r\n templates: {\r\n template: {\r\n events: {\r\n click: onClick\r\n },\r\n childTemplates: [\r\n {\r\n type: 'Ti.UI.Label',\r\n bindId: 'title',\r\n properties: {\r\n left: '5dp',\r\n right: '5dp'\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n defaultItemTemplate: 'template'\r\n }),\r\n section = Ti.UI.createListSection(),\r\n items = [];\r\n\r\nfunction onClick(e) {\r\n alert('CLICK!');\r\n}\r\n\r\nfor (var i = 0; i < 5; i++) {\r\n items.push({\r\n title: { text: 'TEXT' }\r\n });\r\n}\r\nsection.setItems(items);\r\nlist.setSections([section]);\r\n\r\nwin.add(list);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: Add support for template.events", "creator": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 920, "state": "closed", "name": "2017 Sprint 14 SDK", "startDate": "2017-07-02T16:29:41.455Z", "endDate": "2017-07-16T16:29:00.000Z", "completeDate": "2017-07-17T14:39:47.328Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "423334", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile_windows/pull/1031", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-03T14:54:11.000+0000", "updated": "2017-07-03T14:54:11.000+0000" }, { "id": "426361", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix in SDK Version 6.2.0.v20170808012225 and SDK Version 7.0.0.v20170808071205.\r\n\r\nTest and other information can be found at: \r\nhttps://github.com/appcelerator/titanium_mobile_windows/pull/1031", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-09T18:46:01.000+0000", "updated": "2017-08-09T18:46:01.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }