Cell registration
CellPositioninterface
Logical coordinates stored with each registered TreeGrid cell.
makeCollectionvariable
Creates a scoped Collection for TreeGrid items.
Child row visibility
Groupfunction
Renders a rowgroup and hides it while its parent row is collapsed.
GroupOptionsinterface
Inputs accepted by TreeGrid.Group in addition to the shared DOM host options.
Hierarchical rows
Rowfunction
Renders a hierarchical row with level and optional expanded state.
RowOptionsinterface
Inputs accepted by TreeGrid.Row in addition to the shared DOM host options.
Hierarchy and cell focus
InitialStatetype-alias
Initial TreeGrid values. Uses Tree state and defaults.
Statetype-alias
Tree expansion state reused for a grid whose active ID names a cell.
expandedIdsnames parent rows, whileactiveIdnames the active cell within a row.StateSchemavariable
Effect Schema used by makeState to encode, decode, and hydrate TreeGrid state.
activatevariable
Sets the active TreeGrid row or cell id without changing expansion.
makeStatevariable
Creates hydrated TreeGrid state. Uses Tree state and defaults.
Row expansion
collapsevariable
Removes a row id from expandedIds using the Tree state transition.
expandvariable
Adds a row id once to expandedIds using the Tree state transition.
isExpandedvariable
Tests membership in expandedIds without touching the DOM; this is the Tree helper exposed from the TreeGrid entrypoint.
Treegrid surface
Rootfunction
Renders the focus-owning treegrid root and applies combined grid and expansion keys.
RootOptionsinterface
Inputs accepted by TreeGrid.Root in addition to the shared DOM host options.