{ "id": "60635", "key": "TIMOB-3", "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:05.000+0000", "created": "2011-04-15T02:22:16.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:50:05.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 native table view. This\nis a pure native view and it will be treated similar to\ncreateWindow (in that it will have the same properties and\nfunctions available to it). In other words, it is not associated\nwith an HTML page.

\n

Example

\n

var tableView =\nTitanium.UI.createTableView({data:data,rowHeight:'40px'},\nfunction(eventObject) {

\n

});'

\n

tableView.open({animated:true});

\n

Event Object

\n

rowData : the JSON object for the row

\n

section : the section index that was\nclicked

\n

row : the row index that was clicked within a\nsection

\n

index : the index of the row (section\nindependent)

\n

detail : detail clicked (true|false). this is\nonly valid when a row specifies \"hasDetail=true\"

\n

API Arguments

\n

object : a JSON object with two possible\nattributes: data and rowHeight. The 'data' attribute is an array of\nobjects that represents the data required to build the table view\n(see Data Object detail for definition). The 'rowHeight' attribute\nrepresents the height of each table view row. It's optional. The\ndefault is 43 pixels in iPhone.

\n

callback : the callback that is executed each\ntime a table row is clicked.

\n

Data Object Detail

\n

title : row title

\n

html : HTML string for creating custom row\nview. This is used in lieu of title

\n

image : optional. path of an image. Images are\nplaced on the far left side of a row

\n

hasChild : optional. valid values are\ntrue|false. indicates that clicking the row will create another\nwindow. the default value is false. also, if hasChild is\ntrue the default \"more icon\" should be displayed (e.g., for iphone\nthe \">\" would be displayed).

\n

hasDetail : optional. valid values are\ntrue|false. indicates that clicking the row will create another\nwindow. the default value is false. also, if hasDetail is\ntrue, the \"detail\" icon should be displayed. this option is\nfor iphone only.

\n

header : optional header text for a row (e.g.,\ncontacts lists sorted alphabetically)

\n

input : optional instance variable of an input\ncontrol (e.g., checkbox, slider, input field). Note: the callback\nresponsibility falls onto the input control not the table view.

{html}", "attachment": [], "flagged": false, "summary": "API - Titanium.UI.createTableView", "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": "122624", "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:17.000+0000", "updated": "2011-04-15T02:22:17.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }