> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mainly.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Table

> A control for displaying tabular data.

```
Table(columns=[], format='csv')
```

# Example

```python theme={null}
from mirmod.controls import Table

@wob.receiver("value", "data", control=Table(columns=["name", "age", "city"], format='csv'))
def receive_data(self, csv_data):
  self.data = csv_data
```

<Note>Data should be provided as a CSV string or JSON array, matching the `format` parameter.</Note>

# Parameters

| Name    | Type   | Description                                         |
| ------- | ------ | --------------------------------------------------- |
| columns | list   | Column headers for the table.                       |
| format  | string | Data format: `"csv"` or `"json"`. Default: `"csv"`. |
