{ "id": "60651", "key": "TIMOB-19", "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": "11208", "name": "GA - M1", "archived": true, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:50:08.000+0000", "created": "2011-04-15T02:22:36.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:50: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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
The purpose of this API is to create a switch native\ncontrol.
\n\n\nvar switch = Titanium.UI.createSwitch({id:'foo', value:true});\nswitch.addEventListener('change',function(e)\n{\n e.value // current value of switch (true or false)\n});
\n
\nid : optional. HTML element id for where the\nswitch will be placed if placed in webview
\nvalue : the initial value. default is true.
\ncolor : optional. text color
\nbackgroundColor : optional. background color of\nfield
resolved in 0.5