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.
Properties
Section titled “Properties”backgroundColor
Section titled “backgroundColor”Background color.
backgroundColor: ColorcellSpacing
Section titled “cellSpacing”Spacing between cells.
cellSpacing: numberSpecifies the horizontal spacing between cells in the row.
dismissOnSelect
Section titled “dismissOnSelect”Whether to dismiss the table when the row is selected.
dismissOnSelect: boolThis 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
Section titled “height”Height of the row.
height: numberThe height of the row defaults to 44.
isHeader
Section titled “isHeader”Whether the cell is a header.
isHeader: boolHeaders are highlighted cells that helps users understand context. Defaults to false.
onSelect
Section titled “onSelect”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.
Methods
Section titled “Methods”
new UITableRow()
Section titled “new UITableRow()”Constructs a row.
new UITableRow()Rows are shown vertically in a UITable. A row contains cells which are displayed horizontally.
addButton(title)
Section titled “addButton(title)”Adds a button cell.
addButton(title: string): UITableCellConstructs a new cell that contains a button. Set the onTap property to specify an action to performed when the button is tapped.
Parameters
Section titled “Parameters”title string
Title of the button.
Return value
Section titled “Return value”UITableCell
Cosntructed cell.
addCell(cell)
Section titled “addCell(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.
Parameters
Section titled “Parameters”cell UITableCell
Cell to add to the row.
addImage(image)
Section titled “addImage(image)”Adds an image cell.
addImage(image: Image): UITableCellConstructs a new cell containing the specified image and adds it to the row.
Parameters
Section titled “Parameters”image Image
Image to show in the cell.
Return value
Section titled “Return value”UITableCell
Cosntructed cell.
addImageAtURL(url)
Section titled “addImageAtURL(url)”Adds an image cell.
addImageAtURL(url: string): UITableCellConstructs a new cell that loads the image at the specified url and adds the cell to the row.
Parameters
Section titled “Parameters”url string
URL to image.
Return value
Section titled “Return value”UITableCell
Cosntructed cell.
addText(title, subtitle)
Section titled “addText(title, subtitle)”Adds a text cell.
addText(title: string, subtitle: string): UITableCellConstructs a new cell containing the specified string and adds it to the row.
Parameters
Section titled “Parameters”title string
Optional title to show in the cell.
subtitle string
Optional subtitle shown below the title in the cell.
Return value
Section titled “Return value”UITableCell
Constructed cell.