Skip to content

UITable

Renders a table.

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

showSeparators

Whether to show separators.

Whether to show separators between rows. Defaults to false.

showSeparators: bool

-new UITable

Constructs a table.

Use a table to present data in a structured manner.

new UITable()

-addRow

Adds a row.

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.

addRow(row: UITableRow)

-removeRow

Removes a row.

Removes a row from the table.

removeRow(row: UITableRow)

-removeAllRows

Removes all rows.

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.

removeAllRows()

-reload

Reloads the table.

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.

reload()

-present

Presents the table

present(): Promise