Free
Pro

Tree table

Rows that open into child rows. Use it for accounts, folders, or any table whose first column is a tree. A flat sortable grid stays ply-data-table.

Pro

Pro — licensed

Tree table — part of Ply Pro

Unlock it plus 92 pro blocks, widgets & layouts — $99 one-time. Lifetime updates, 14-day money-back guarantee.

Unlock Pro

Expandable rows

Put child rows on children. Set expanded when a branch should start open. Arrow right expands, arrow left collapses.

Account Owner Spend
Engineering Ada $84k
Platform Grace $41k
Product Lin $22k

Selected: Click a row

Installation

bash
npx ply-ui-cli add tree-table

API Reference

For AI agents

Copy a prompt with the registry name, CLI install, and import — or add the Ply MCP server.

bash
npx -y ply-ui-mcp

Ply provides standalone components. Import the exact elements you want to use into your component.

typescript (Example)
// Install: npx ply-ui-cli add tree-table
// Paths are relative to aliases.components (default: src/app/components)
import { TreeTableComponent, TreeTableNode } from './tree-table/tree-table.component';

@Component({
  selector: 'app-your-component',
  imports: [
    TreeTableComponent
  ],
  template: `...`
})
export class YourComponent {}

API for tree-table — generated from JSDoc in the library source.

API reference for tree-table
APIMemberTypeDefaultDescription
TreeTableNodedataT — Cell values, keyed by `TableColumn.key`.
TreeTableNodechildrenTreeTableNode<T>[] — Nested rows. Absent or empty means a leaf.
TreeTableNodeexpandedboolean — Whether the child rows are visible.
ply-tree-tableclassstring''Extra host classes merged via `cn()`.
ply-tree-tablecolumnsTableColumn[][]Column definitions. The first column is the tree column.
ply-tree-tablenodesTreeTableNode<T>[][]Root rows. Nested rows live on `children` and show when `expanded` is true.
ply-tree-tableemptyMessagestring''Replaces the default empty message.
ply-tree-table(rowClick)TreeTableNode<T> — Emitted when a row body is activated. The disclosure button does not emit this.