PgFlowDashboard.Components.DataTable (PgFlow v0.1.0)

Copy Markdown View Source

Sortable, filterable data table component.

Summary

Functions

Renders a data table.

Functions

data_table(assigns)

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".