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.

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(number)

-new UITableRow

Constructs a row.

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

new UITableRow()

-addCell

Adds a cell.

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

addCell(cell: UITableCell)

-addText

Adds a text cell.

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

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

-addImage

Adds an image cell.

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

addImage(image: Image): UITableCell

-addImageAtURL

Adds an image cell.

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

addImageAtURL(url: string): UITableCell

-addButton

Adds a button cell.

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

addButton(title: string): UITableCell