columns and rows and renders a full-featured table with optional sorting, search filtering, and pagination. Use it when you have structured data and want interactive table features without building the markup yourself.
Basic Usage
Pagination
Enable pagination to handle large datasets. The table shows page controls and displayspage_size rows at a time.
API Reference
DataTable Parameters
Column definitions. Each column specifies a
key, header, and optional sortable flag.Row data as a list of dicts, or a
{{ field }} interpolation reference.Show a search/filter input above the table.
Show pagination controls below the table.
Number of rows per page when
paginated=True.Optional table caption.
Additional Tailwind CSS classes.
Protocol Reference
DataTable
DataTableColumn