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.

Background color.

backgroundColor: Color

Spacing between cells.

cellSpacing: number

Specifies the horizontal spacing between cells in the row.

Whether to dismiss the table when the row is selected.

dismissOnSelect: bool

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.

Height of the row.

height: number

The height of the row defaults to 44.

Whether the cell is a header.

isHeader: bool

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

Called when the row is selected.

onSelect: fn()

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.

Constructs a row.

new UITableRow()

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

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.

title string

Title of the button.

UITableCell

Cosntructed cell.

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.

cell UITableCell

Cell to add to the row.

Adds an image cell.

addImage(image: Image): UITableCell

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

image Image

Image to show in the cell.

UITableCell

Cosntructed cell.

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.

url string

URL to image.

UITableCell

Cosntructed cell.

Adds a text cell.

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

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

title string

Optional title to show in the cell.

subtitle string

Optional subtitle shown below the title in the cell.

UITableCell

Constructed cell.