Agents & OrchestrationSûr100100/100
Expanding (TanStack)
Expand hierarchical subrows or custom detail panels with rowExpandingFeature, expandedRowModel, getSubRows, getRowCanExpand, manualExpanding, and paginateExpandedRows. Load when expansion state changes but no UI appears.
ou envoie-le directement à ton agent.
Installer dans ton projet
$ curl -fsSL https://arboristhree.xyz/cli/install-skill.mjs -o /tmp/arboris-install-skill.mjs && node /tmp/arboris-install-skill.mjs expanding__tanstack-table__packages-table-core-skills-4dfa71fa8892TanStack
TanStack/table
Contenu à copier
---
name: expanding
description: >
Expand hierarchical subrows or custom detail panels with rowExpandingFeature, expandedRowModel, getSubRows, getRowCanExpand, manualExpanding, and paginateExpandedRows. Load when expansion state changes but no UI appears.
metadata:
origin: TanStack
{ type: sub-skill, library: '@tanstack/table-core', library_version: '9.2.4' }
requires: ['core', 'table-features', 'client-vs-server']
sources:
- 'TanStack/table:docs/framework/react/guide/expanding.md'
- 'TanStack/table:packages/table-core/src/features/row-expanding'
- 'TanStack/table:examples/react/expanding'
---
This skill builds on `core`, `table-features`, and `client-vs-server`. Expansion controls row-tree inclusion; the renderer owns disclosure controls and detail panels.
## Setup
```ts
import {
createExpandedRowModel,
rowExpandingFeature,
tableFeatures,
} from '@tanstack/table-core'
type Node = { id: string; children?: Node[] }
export const features = tableFeatures({
rowExpandingFeature,
expandedRowModel: createExpandedRowModel(),
})
export const options = { getSubRows: (row: Node) => row.children }
```
## Core Patterns
```ts
const detailOptions = { getRowCanExpand: () => true }
const isDetailOpen = row.getIsExpanded()
```
For custom detail UI, render an additional row/panel when `isDetailOpen` is true.
## Common Mistakes
### [HIGH] Omitting the subrow accessor
Wrong: `const options = { data: nestedRows }`
Correct: `const options = { data: nestedRows, getSubRows: (row: Node) => row.children }`
Nested object structure is not inferred automatically.
Source: `docs/framework/react/guide/expanding.md#table-rows-as-expanded-data`
### [HIGH] Expecting detail markup from state
Wrong: `row.toggleExpanded(true)`
Correct: `if (row.getIsExpanded()) renderDetail(row.original)`
Table is headless and cannot render a custom detail panel.
Source: `docs/framework/react/guide/expanding.md#custom-expanding-ui`
### [HIGH] Misreading pagination placement
Wrong: `const options = { paginateExpandedRows: false }; const leafOnlyPages = true`
Correct: `const options = { paginateExpandedRows: false }; const descendantsStayWithParent = true`
This option controls whether expansion happens before or after pagination; it does not make page size count only leaf rows.
Source: `packages/table-core/src/features/row-expanding/rowExpandingFeature.types.ts`
## API Discovery
Inspect `node_modules/@tanstack/table-core/dist/features/row-expanding/` for expansion state, row APIs, and model placement.Colle ce Markdown dans ton agent ou utilise les boutons ci-dessus pour l’écrire dans ton projet.
Ce que fait Expanding (TanStack)
Applique les pratiques du skill expanding__tanstack-table__packages-table-core-skills-4dfa71fa8892.
Comment utiliser Expanding (TanStack)
1
Copie le prompt
Un clic copie le prompt packagé (ou l'envoie à ton agent).
2
L'agent installe le skill
Il ajoute le SKILL.md et ses ressources à ton projet.
3
Activation automatique
Le skill s'active dès que le contexte correspond.
Déclencheurs pour Expanding (TanStack)
Dis simplement à ton agent quelque chose comme :
Applique le skill expanding__tanstack-table__packages-table-core-skills-4dfa71fa8892 à cette tâche
Utilise expanding__tanstack-table__packages-table-core-skills-4dfa71fa8892 pour améliorer cette implémentation
Passe en revue ce sujet avec expanding__tanstack-table__packages-table-core-skills-4dfa71fa8892
Skills liés à Expanding (TanStack)
Acceleration (Microsoft)
Compare synthetic acceleration options and clearly separate scenario value from forecast commitments.Account Overview (Microsoft)
Create a synthetic Acme account overview and identify evidence that merits seller attention.Acroform Writer (Microsoft)
Use this skill whenever the user wants values written INTO an existing PDF form that lives in the connected SharePoint knowledge source — filling out, completing, populating, or submitting a fillable PDF (application, intake sheet, contract, government form) from data they supply, a spreadsheet row, or the conversation. Triggers include "fill out the job application form", "complete the intake form for [person]", "populate our standard NDA template", and "make this ready to send / non-editable" (flatten). The source form should be found via knowledge search; only ask the user to upload it if knowledge search turns up nothing plausible. different task), and do NOT use it on scanned/image-only PDFs that have no real fillable fields — those need OCR or manual overlay instead, which this skill explicitly detects and reports rather than silently failing.