---
url: /mosaic/examples/table.md
---
# Sortable Table

A sortable, "infinite scroll" `table` view over a backing database table. Click column headers to sort, or command-click to reset the order. Data is queried as needed as the table is sorted or scrolled.

## Specification

```py \[Python]
import vgplot as vg

flights = vg.parquet("data/flights-200k.parquet")

view = vg.table_input(source=flights, height=300)

```
