{ "id": "60681", "key": "TIMOB-49", "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": "2011-04-17T01:51:49.000+0000", "created": "2011-04-15T02:23:03.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:51:49.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": "{html}
The purpose of this API is to create a button native control.\n(Copied from iPhone ticket #22)
\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
Properties pulled from iPhone documentation. Not reflected in\nthe spec.
\nUI.Button.image : relative or app: path to the\nimage that will appear if systemButton is not used
\nUI.Button.backgroundDisabledImage : relative or\napp: path to the image that will appear as the stretchable\nbackground
\nUI.Button.backgroundSelectedImage : relative or\napp: path to the image that will appear as the stretchable\nbackground if the button is not in the toolbar or navbar and is\nselected.
\nUI.Button.borderColor : a web color of the\ncorners behind the button. Default is transparent.
Pushed everything but the backgroundImage support. Also\nbackgroundColor doesn't work quite as expected. Future work needs\nto be done to export state functionality to the api (e.g. focused,\npressed, ...).