What problem does it solve?
Row expansion state changes but no UI appears, or nested data fails to render because TanStack Table is headless and does not infer subrow structure or render detail panels automatically.
Core Features & Use Cases
- Hierarchical Subrows: Register rowExpandingFeature with createExpandedRowModel and a getSubRows accessor to expand tree-structured data.
- Custom Detail Panels: Use getRowCanExpand and row.getIsExpanded() to render your own detail rows or panels when a row is expanded.
- Pagination Control: Configure paginateExpandedRows to decide whether expansion happens before or after pagination, and use manualExpanding for server-side expansion state.
- Use Case: You have a nested org chart dataset and want users to click a row to reveal its children, with expanded rows staying grouped under their parents across pages.
Quick Start
Set up row expansion in my TanStack Table by adding rowExpandingFeature with a getSubRows accessor for my nested data and render a detail panel when a row is expanded.