{ "id": "60654", "key": "TIMOB-22", "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:09.000+0000", "created": "2011-04-15T02:22:38.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:09.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 button native\ncontrol.
\n\n\nvar button = Titanium.UI.createButton({id:'foo',title:'My Title', icon:'images/foo.png'})\n\n\n// add event listneer\nbutton.addEventListener('click',function(event)\n{\n});
\n
\nid : optional. HTML element id for where the\nbutton will be placed if placed in webview
\ntitle : optional. title text on button
\nicon : optional. path to image file
\nstyle : pre-defined button style
\nsystemButton : pre-defined system icon or\nbutton (iPhone only)
\nwidth : optional. width of button
\nheight : optional. height of button
\nbackgroundImage : optional. path to a\nbackground image to be used as the background for the button
\ncolor : optional. text color
\nbackgroundColor : optional. background color of\nfield
resolved in 0.5