{
"id": "118239",
"key": "ALOY-788",
"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": "15403",
"description": "Alloy 1.3.0",
"name": "Alloy 1.3.0",
"archived": false,
"released": true,
"releaseDate": "2013-12-20"
},
{
"id": "15754",
"description": "2013 Sprint 23",
"name": "2013 Sprint 23",
"archived": true,
"released": true,
"releaseDate": "2013-11-15"
}
],
"resolution": {
"id": "1",
"description": "A fix for this issue is checked into the tree and tested.",
"name": "Fixed"
},
"resolutiondate": "2013-11-06T21:19:44.000+0000",
"created": "2013-08-10T08:46:00.000+0000",
"priority": {
"name": "High",
"id": "2"
},
"labels": [
"alloy",
"rightbutton",
"textfield"
],
"versions": [
{
"id": "15570",
"description": "Alloy 1.2.1",
"name": "Alloy 1.2.1",
"archived": false,
"released": true,
"releaseDate": "2013-08-27"
}
],
"issuelinks": [],
"assignee": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"updated": "2014-06-22T13:21:17.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": [],
"description": "*Problem*\r\nrightButton for TextField doesn't work. XML structure has to look like the following (Similar like a HeaderView under a TableView):\r\n\r\n*Alloy test case*\r\n{code:xml} \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n*Error*\r\n{code}Invalid method (createRightButton) passed to UIModule{code}\r\n\r\n*Note*\r\nYes we can use a workaround, but I have to use a controller for this and it's a mess.\r\n\r\n*Standard test case*\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\n\r\nvar rightButton = Titanium.UI.createButton({\r\n\tcolor : '#FF0000',\r\n\ttitle : 'Hello'\r\n});\r\n\r\nrightButton.addEventListener('click', function() {\r\n\talert(\"rightButton clicked\");\r\n});\r\n\r\nvar textField = Ti.UI.createTextField({\r\n\tborderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED,\r\n\tcolor : '#336699',\r\n\ttop : 10,\r\n\tleft : 10,\r\n\twidth : 250,\r\n\theight : 40,\r\n\trightButton : rightButton\r\n});\r\n\r\nwin.add(textField);\r\nwin.open();{code}",
"attachment": [],
"flagged": false,
"summary": "iOS: rightButton for TextField doesn't work",
"creator": {
"name": "sko",
"key": "sko",
"displayName": "Matej",
"active": true,
"timeZone": "America/Los_Angeles"
},
"subtasks": [],
"reporter": {
"name": "dsefton",
"key": "dsefton",
"displayName": "Daniel Sefton",
"active": true,
"timeZone": "America/Los_Angeles"
},
"environment": "Macbook Pro, OSX 10.7.5, iOS Simulator v. 6.0 (369.2). Ti: 3.1.1 GA",
"comment": {
"comments": [
{
"id": "266588",
"author": {
"name": "dsefton",
"key": "dsefton",
"displayName": "Daniel Sefton",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Tested and confirmed on iOS 6 simulator with Ti SDK 3.1.1 GA and Alloy 1.2.1. Simply drop in the XML to the default view in a new Alloy project and run it.\n\n@Tony: It looks like a feature request for the Alloy XML to me. I'm going to assume that doing isn't supported by Alloy. I also created a standard test case just encase, which works.",
"updateAuthor": {
"name": "dsefton",
"key": "dsefton",
"displayName": "Daniel Sefton",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2013-08-15T00:13:50.000+0000",
"updated": "2013-08-15T00:13:50.000+0000"
},
{
"id": "278508",
"author": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Resolved as part of ALOY-418. Additional details and testing measures can be found in there.",
"updateAuthor": {
"name": "tlukasavage",
"key": "tlukasavage",
"displayName": "Tony Lukasavage",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2013-11-06T21:19:45.000+0000",
"updated": "2013-11-06T21:19:45.000+0000"
},
{
"id": "283339",
"author": {
"name": "fcasali",
"key": "fcasali",
"displayName": "Federico Casali",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "See ALOY-418 for resolution.\nClosing.",
"updateAuthor": {
"name": "fcasali",
"key": "fcasali",
"displayName": "Federico Casali",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2013-12-10T00:04:25.000+0000",
"updated": "2013-12-10T00:04:25.000+0000"
}
],
"maxResults": 4,
"total": 4,
"startAt": 0
}
}
}