---
title: UITable
description: Renders a table.
---

Renders a table.

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

## Properties

### showSeparators

Whether to show separators.

```typescript
showSeparators: bool
```

Whether to show separators between rows. Defaults to false.

## Methods

<span id="-new-uitable" class="api-anchor"></span>

### new UITable()

Constructs a table.

```typescript
new UITable()
```

Use a table to present data in a structured manner.

<span id="-addrow" class="api-anchor"></span>

### addRow(row)

Adds a row.

```typescript
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.

<span id="-present" class="api-anchor"></span>

### present(fullscreen)

Presents the table.

```typescript
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.

<span id="-reload" class="api-anchor"></span>

### reload()

Reloads the table.

```typescript
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.

<span id="-removeallrows" class="api-anchor"></span>

### removeAllRows()

Removes all rows.

```typescript
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.

<span id="-removerow" class="api-anchor"></span>

### removeRow(row)

Removes a row.

```typescript
removeRow(row: UITableRow)
```

Removes a row from the table.

#### Parameters

**`row` `UITableRow`**

Row to remove.