Skip to content

UITableRow

Row in a UITable.

Rows can be added to an instance of UITable. A row is shown vertically in a UITable in the order they are added to the table. Rows contain cells which are shown horizontally in the order they are added to the row.

cellSpacing

Spacing between cells.

Specifies the horizontal spacing between cells in the row.

cellSpacing: number

height

Height of the row.

The height of the row defaults to 44.

height: number

isHeader

Whether the cell is a header.

Headers are highlighted cells that helps users understand context. Defaults to false.

isHeader: bool

dismissOnSelect

Whether to dismiss the table when the row is selected.

This property will only have an effect if the row is selectable, i.e. onSelect has a value. Otherwise it is ignored.

Defaults to true.

dismissOnSelect: bool

onSelect

Called when the row is selected.

Called when the row is selected when the table is presented. If this has no value, the row cannot be selected. Defaults to null.

Rows cannot be tapped when the tables is presented in Siri.

onSelect: fn()

backgroundColor

Background color.

backgroundColor: Color

-new UITableRow

Constructs a row.

new UITableRow()

Rows are shown vertically in a UITable. A row contains cells which are displayed horizontally.


-addCell

Adds a cell.

addCell(cell: UITableCell)

Adds a cell to the row. Note that cells are shown in the order they are added to the row.

Parameters

cell
UITableCell
Cell to add to the row.


-addText

Adds a text cell.

addText(title: string, subtitle: string): UITableCell

Constructs a new cell containing the specified string and adds it to the row.

Parameters

title
string
Optional title to show in the cell.

subtitle
string
Optional subtitle shown below the title in the cell.

Return value

UITableCell
Constructed cell.


-addImage

Adds an image cell.

addImage(image: Image): UITableCell

Constructs a new cell containing the specified image and adds it to the row.

Parameters

image
Image
Image to show in the cell.

Return value

UITableCell
Cosntructed cell.


-addImageAtURL

Adds an image cell.

addImageAtURL(url: string): UITableCell

Constructs a new cell that loads the image at the specified url and adds the cell to the row.

Parameters

url
string
URL to image.

Return value

UITableCell
Cosntructed cell.


-addButton

Adds a button cell.

addButton(title: string): UITableCell

Constructs a new cell that contains a button. Set the onTap property to specify an action to performed when the button is tapped.

Parameters

title
string
Title of the button.

Return value

UITableCell
Cosntructed cell.