TreeTable

A table whose rows form a tree. Everything of the table — sorting, pages, filters, selection, column resize and reorder, frozen columns, scroll — works on the tree, plus lazy children and checkbox selection of whole branches.

Features14APIThemingAccessibility

Basic

Nodes with data and children. The first column gets the toggler; Tab reaches a row, ArrowRight / ArrowLeft open and close it.

Templates

txTableCell gets the node data as let-file and the node itself as node. [(expandedKeys)] keeps the open rows; expandAll() / collapseAll() open or close all.

Applications
300 MB
Player
80 MB

Sort

Sorting orders siblings on every level and keeps children under their parent. sortMode="multiple" sorts by several columns with Ctrl / ⌘ + click.

Applications
300
Folder
Player
80
Application
Cloud
50
Folder
backup-2025.zip
30
Archive
photos.zip
20
Archive
Applications
300
Folder
Player
80
Application
Cloud
50
Folder
backup-2025.zip
30
Archive
photos.zip
20
Archive

Pagination

paginator pages the root nodes; open children stay on the page of their parent.

Filter

Column filters and the global search keep the parents of every match and open them. filterMode="strict" drops the children of a match that do not match themselves.

Selection

selectionMode="single" or multiple selects rows by click, Space or Enter; Shift + click selects a range.

Applications
300
Folder
Player
80
Application

Selected: —

Checkbox

selectionMode="checkbox" puts a checkbox next to the toggler and a select-all checkbox in the header. Checking a folder checks its branch; a partly checked folder shows a dash.

Applications
300
Folder
Editor
220
Folder
editor.app
180
Application
editor-docs.pdf
40
Document
Player
80
Application

0 checked

Lazy

Rows with leaf: false and no children load on demand: nodeExpand fires and the toggler spins until the children arrive.

Server

lazy hands sorting and pages of the root nodes to the server through lazyLoad; loading blurs the rows meanwhile.

No results found

Columns

resizableColumns, reorderableColumns and columnSettings work as in the table; the toggler moves with the first visible column.

Applications
300
Folder
Player
80
Application

Scroll height

scrollHeight keeps the header in place while the rows scroll; frozen columns stay while the table scrolls sideways.

Applications
300
Folder
Editor
220
Folder
editor.app
180
Application
editor-docs.pdf
40
Document
Player
80
Application
Cloud
50
Folder
backup-2025.zip
30
Archive
photos.zip
20
Archive
Desktop
12
Folder
notes.txt
2
Text
plan.xlsx
10
Spreadsheet
Music
640
Folder
Album
640
Folder
track-01.mp3
8
Audio

Appearance

showGridlines, stripedRows, rowHover and size work as in the table.

Applications
300
Folder
Player
80
Application
Applications
300
Folder
Player
80
Application

Design tokens

dt takes the table tokens of one tree table — here a tinted header and taller rows.

Applications
300
Folder
Player
80
Application

Pass through

pt adds classes and styles to the table parts and to treeToggle.

Applications
300
Folder
Player
80
Application