Basic Usage
Top-Level Properties
Make columns clickable to let users sort by any column
Add a search bar at the top to filter table rows
Pre-fill the search bar with this value (user can still edit it)
Custom placeholder text for the search input (default: “Search…”)
Name of a column whose content should be interpreted as Markdown. Can be repeated for multiple columns.
Name of a column whose content should be interpreted as a Tabler icon name. Can be repeated.
Name of a column to right-align. Can be repeated for multiple columns.
Name of a column to center-align. Can be repeated for multiple columns.
Name of a column to display in monospace font. Can be repeated.
Add zebra-striping to table rows
Add zebra-striping to table columns
Enable hover state on table rows
Draw borders on all sides of the table and cells
Use a more compact table layout
Enable horizontal scrolling for wide tables
Caption for the table (helps screen readers)
Text to display if the table has no rows (default: “no data”)
Freeze the leftmost column when scrolling horizontally
Freeze the top row when scrolling vertically
Freeze the footer row when scrolling
Name of a numeric column to display without formatting. Can be repeated.
Name of a numeric column to format as currency. Can be repeated.
ISO 4217 currency code (USD, EUR, GBP, etc.) for money columns
Maximum number of decimal digits for numeric values
Add an edit button to each row. Use
{id} placeholder for the _sqlpage_id value.Add a delete button to each row. Use
{id} placeholder for the _sqlpage_id value.JSON array of custom action buttons:
[{"name":"View", "icon":"eye", "link":"/view?id={id}", "tooltip":"View details"}]Row Properties
You can include special columns in your SQL query to control row appearance:CSS class to apply to this row
Background color for this row
Mark this row as a table footer
ID for this row (used in edit/delete/action links)
Row-specific action buttons (same format as
custom_actions)Examples
Simple Table
Searchable and Sortable Table
Table with Markdown and Icons
Table with Footer
Table with Formatted Numbers
Table with Action Buttons
Frozen Columns and Headers
Notes
Tables automatically handle column names from your SQL query - no need to specify them manually.