{ "id": "60682", "key": "TIMOB-50", "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": "11210", "name": "Release 0.6.0", "archived": true, "released": true, "releaseDate": "2009-08-12" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-01T16:39:37.000+0000", "created": "2011-04-15T02:23:04.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android" ], "versions": [], "issuelinks": [ { "id": "39496", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "134003", "key": "TIMOB-17443", "fields": { "summary": "Android: Include native Switch UI element", "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": "None", "id": "6" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-08-01T16:42:56.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": ".h3 Description\r\n\r\nThe purpose of this API is to create a switch native control. (copied from iPhone ticket)\r\n\r\n.h3 Example\r\n\r\n{code}\r\nvar switch = Titanium.UI.createSwitch({id:'foo', value:true});\r\nswitch.addEventListener('change',function(e)\r\n{\r\n e.value // current value of switch (true or false)\r\n});\r\n{code}\r\n\r\n.h3 API Arguments\r\n\r\n* id: optional. HTML element id for where the switch will be placed if placed in webview\r\n* value: the initial value. default is true.\r\n* color: optional. text color\r\n* backgroundColor: optional. background color of field", "attachment": [], "flagged": false, "summary": "API - Titanium.UI.createSwitch (Android)", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "122714", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [ea80588331816c98e1883ee83cf1c941db0602ff])\nToggle button [#50] Native toggle button/switch created using\nTitanium.UI.createSwitch \nhttp://github.com/appcelerator/titanium_mobile/commit/ea80588331816...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:23:04.000+0000", "updated": "2011-04-15T02:23:04.000+0000" }, { "id": "122715", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [d7bdc2fa16ce5399a92fc2a6886f6fbdf065559d])\n[#50\nstate:resolved] added color and backgroundColor. backgroundColor\nshould probably not be used. \nhttp://github.com/appcelerator/titanium_mobile/commit/d7bdc2fa16ce5...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:23:05.000+0000", "updated": "2011-04-15T02:23:05.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }