Skip to content

UITable

Renders a table.

Tables present data in a structured manner. A table contains rows which in turn contains cells.

Whether to show separators.

showSeparators: bool

Whether to show separators between rows. Defaults to false.

Constructs a table.

new UITable()

Use a table to present data in a structured manner.

Adds a row.

addRow(row: UITableRow)

Adds a row to the table. Rows are shown vertically in the table view, i.e. from the top and down. Rows are rendered in the order they are added.

row UITableRow

Row to add.

Presents the table.

present(fullscreen: bool): Promise

fullscreen bool

Optional. Set to true to present the web view in fullscreen. This only has an effect when used within the app. Defaults to false.

Promise

Promise that is fulfilled when the table is dismissed.

Reloads the table.

reload()

If you add or remove rows while a table view is presented, you must reload the table in order for the changes to take effect.

Removes all rows.

removeAllRows()

Removes all rows from the table. If the table is presented, you must call the reload function in order for the changes to be reflected visually.

Removes a row.

removeRow(row: UITableRow)

Removes a row from the table.

row UITableRow

Row to remove.