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.

new UITable()

Use a table to present data in a structured manner.


-addRow

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.

Parameters

row
UITableRow
Row to add.


-removeRow

Removes a row.

removeRow(row: UITableRow)

Removes a row from the table.

Parameters

row
UITableRow
Row to remove.


-removeAllRows

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.


-reload

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.


-present

Presents the table.

present(fullscreen: bool): Promise

Parameters

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.

Return value

Promise
Promise that is fulfilled when the table is dismissed.