# `PgFlowDashboard.Components.DataTable`
[🔗](https://github.com/agoodway/pgflow/blob/v0.1.0/lib/pgflow_dashboard/components/data_table.ex#L1)

Sortable, filterable data table component.

# `data_table`

Renders a data table.

## Attributes

  * `:rows` - List of row data (maps)
  * `:columns` - List of column definitions

## Column Definition

Each column is a map with:
  * `:key` - The key to extract from each row
  * `:label` - Display label
  * `:class` - Optional CSS class for the column

## Attributes

* `rows` (`:list`) (required)
* `columns` (`:list`) (required)
* `row_click` (`:any`) - Defaults to `nil`.
* `empty_message` (`:string`) - Defaults to `"No data available"`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
