{ "id": "142131", "key": "ALOY-1217", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "16692", "name": "Alloy 1.7.0", "archived": false, "released": true, "releaseDate": "2015-07-22" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-01-30T17:10:10.000+0000", "created": "2014-12-30T00:53:24.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "TCSupportTriage" ], "versions": [ { "id": "16595", "name": "Alloy 1.5.1", "archived": false, "released": true, "releaseDate": "2014-10-01" } ], "issuelinks": [], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2018-03-07T22:28:29.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": "13604", "name": "Tooling", "description": "Items related to Alloy tooling and workflow" }, { "id": "12326", "name": "XML", "description": "View XML and parsing" } ], "attachment": [ { "id": "53529", "filename": "Screen Shot 2015-01-12 at 2.42.08 PM.png", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2015-01-12T19:49:58.000+0000", "size": 160954, "mimeType": "image/png" } ], "flagged": false, "summary": "TextField with proxy property causes compile error as ItemTemplate", "creator": { "name": "ndizazzo", "key": "ndizazzo", "displayName": "Nick DiZazzo", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ndizazzo", "key": "ndizazzo", "displayName": "Nick DiZazzo", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 3.4.1.GA\r\nAppcelerator Studio, build: 3.4.1.201410281743\r\nAlloy 1.5.1\r\nCLI 3.4.1", "closedSprints": [ { "id": 311, "state": "closed", "name": "2015 Sprint 02 Tooling", "startDate": "2015-01-17T02:00:00.000Z", "endDate": "2015-01-31T01:00:00.000Z", "completeDate": "2015-01-31T03:36:52.887Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "337623", "author": { "name": "ndizazzo", "key": "ndizazzo", "displayName": "Nick DiZazzo", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Relates to ALOY-923", "updateAuthor": { "name": "ndizazzo", "key": "ndizazzo", "displayName": "Nick DiZazzo", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-30T00:54:52.000+0000", "updated": "2014-12-30T00:54:52.000+0000" }, { "id": "338716", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "I'm not sure what your goal is here. ListViews are data oriented components, and are unlike tables in that you have limited access to child View components. Because of that, it would be challenging to do anything useful with a text field toolbar. See the attached screen, which shows the event object data available when you click on the Done button.\r\n\r\nHere's the Classic code used to create that screen:\r\n{noformat}\r\nvar win = Titanium.UI.createWindow({\r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar btns = [];\r\nbtns.push(Ti.UI.createButton({\r\n systemButton: Ti.UI.iPhone.SystemButton.CANCEL\r\n}));\r\n\r\nbtns.push(Ti.UI.createButton({\r\n systemButton: Ti.UI.iPhone.SystemButton.FLEXIBLE_SPACE\r\n}));\r\n\r\nbtns.push(Ti.UI.createButton({\r\n systemButton: Ti.UI.iPhone.SystemButton.CAMERA\r\n}));\r\n\r\nbtns.push(Ti.UI.createButton({\r\n systemButton: Ti.UI.iPhone.SystemButton.FLEXIBLE_SPACE\r\n}));\r\nvar done = Ti.UI.createButton({\r\n systemButton: Ti.UI.iPhone.SystemButton.DONE\r\n});\r\nfunction doFoo(e) {\r\n console.log(e)\r\n}\r\ndone.addEventListener('click', doFoo)\r\nbtns.push(done);\r\n\r\n\r\nvar toolbar = Ti.UI.iOS.createToolbar({\r\n items: btns\r\n});\r\n\r\n\r\nvar myTemplate = {\r\n childTemplates: [\r\n {\r\n type: 'Ti.UI.TextField',\r\n bindId: 'tf',\r\n properties: {\r\n keyboardToolbar: toolbar,\r\n borderStyle: Ti.UI.INPUT_BORDERSTYLE_BEZEL,\r\n keyboardToolbarColor: \"#999\",\r\n keyboardToolbarHeight: \"40\",\r\n width: \"300\"\r\n }\r\n }\r\n ],\r\n events: {click: doFoo }\r\n};\r\nvar listView = Ti.UI.createListView({\r\n top: 20,\r\n templates: { 'template': myTemplate },\r\n defaultItemTemplate: 'template'\r\n});\r\nvar sections = [];\r\n\r\nvar data = [];\r\ndata.push(\r\n { tf: { value: \"Focus to see keyboard with toolbar\"}, properties: { itemId: 1 }}\r\n);\r\ndata.push(\r\n { tf: { value: \"This is another item w/text field\"}, properties: { itemId: 2 }}\r\n);\r\ndata.push(\r\n { tf: { value: \"And a third\"}, properties: { itemId: 3 }}\r\n);\r\nvar mainsection = Ti.UI.createListSection();\r\nmainsection.setItems(data);\r\nsections.push(mainsection);\r\nlistView.sections = sections;\r\nwin.add(listView);\r\nwin.open();\r\n{noformat}", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2015-01-12T19:50:03.000+0000", "updated": "2015-01-12T19:53:28.000+0000" }, { "id": "341422", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Resolving as invalid. But if you have additional information, I'll be glad to re-open and look at this again. But, I think my previous comment addresses the troubles you're having.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2015-01-30T17:10:10.000+0000", "updated": "2015-01-30T17:10:10.000+0000" }, { "id": "435359", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid. If this is incorrect, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-07T22:28:29.000+0000", "updated": "2018-03-07T22:28:29.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }