{ "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}

Description

\n

The purpose of this API is to create a button native\ncontrol.

\n

Example

\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
\n

API Arguments

\n

id : optional. HTML element id for where the\nbutton will be placed if placed in webview

\n

title : optional. title text on button

\n

icon : optional. path to image file

\n

style : pre-defined button style

\n

systemButton : pre-defined system icon or\nbutton (iPhone only)

\n

width : optional. width of button

\n

height : optional. height of button

\n

backgroundImage : optional. path to a\nbackground image to be used as the background for the button

\n

color : optional. text color

\n

backgroundColor : optional. background color of\nfield

{html}", "attachment": [], "flagged": false, "summary": "API - Titanium.UI.createButton", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "122665", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

resolved in 0.5

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:38.000+0000", "updated": "2011-04-15T02:22:38.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }