Data table

Search, sort, select and paginate rows.

Ada Lovelace[email protected]Owner
Grace Hopper[email protected]Admin
Alan Turing[email protected]Member
Edsger Dijkstra[email protected]Member
Linus Torvalds[email protected]Admin
7 row(s)
Page 1 of 2

API reference

Inputs

PropTypeDefaultDescription
columnsreadonly DataTableColumn[][]Column definitions that drive the headers, cell lookup and sort/search keys.
rowsreadonly DataRow[][]Source data rows; each is a key/value map indexed by column keys.
searchablebooleantrueWhether to show the search box that filters rows across all columns.
searchPlaceholderstring'Search...'Placeholder text for the search input.
selectablebooleantrueWhether to render row checkboxes and the select-all header checkbox.
pageSizenumber5Number of rows displayed per page.
searchLabelstringAccessible label override for the search input.
selectAllLabelstringAccessible label override for the select-all checkbox.
selectRowLabelstringAccessible label override for each row's select checkbox.

Types

DataRow

Record<string, unknown>

DataTableColumn

FieldTypeDescription
keystringRow property key whose value is rendered and used for sorting/searching.
labelstringColumn header text shown in the table head.
sortable?false | trueWhether the header is a sort toggle; `false` disables sorting for this column.
align?"center" | "left" | "right"Horizontal text alignment for the column's header and cells.

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.