Tree table

A table with expandable nested rows.

Name Type
src folder
app.ts file
main.ts file
package.json file

Copy as markdown tree

Set [copyable]="true" for a button that copies the hierarchy as an ASCII tree (├── / └──), ready to paste into a README.

Name Type
src folder
app.ts file
main.ts file
package.json file

API reference

Inputs

PropTypeDefaultDescription
columnsreadonly TreeTableColumn[][]Column definitions in display order.
rowsreadonly TreeTableRow[][]Top-level rows, each able to nest children via `children`.
toggleLabelstringAccessible label for the expand/collapse toggle button.
copyablebooleanfalseShow a button that copies the full hierarchy as a markdown ASCII tree.
copyLabelstringLabel override for the copy button (idle state).
copiedLabelstringLabel override for the copy button after copying.

Types

TreeTableColumn

FieldTypeDescription
keystringRow data key whose value fills this column's cells.
labelstringColumn header text.
align?"center" | "left" | "right"Horizontal text alignment for the column's cells.

TreeTableRow

FieldTypeDescription
children?TreeTableRow[]Nested child rows shown when this row is expanded.
expanded?false | trueWhether the row starts expanded.

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