本页还没有译文
本页 18 段还没译成Русский,下面显示的是英文原文。row_toggleExpanded
还没翻译译自英文(tanstack.com)本页 18 段都还没译
function row_toggleExpanded<TFeatures, TData>(row, expanded?): void;Defined in: features/row-expanding/rowExpandingFeature.utils.ts:289
Expands or collapses this row.
Omitting expanded toggles the row. If the current state is expanded-all,
the function first materializes that state into a row-id map (containing
only expandable row ids) before applying the row-specific change.
The call is a no-op (no onExpandedChange) when the requested state matches
the current state, or when expanding a row that cannot expand. Collapsing is
always allowed so stale expanded ids can be cleaned up.
Type Parameters
TFeatures
TFeatures extends TableFeatures
TData
TData extends RowData
Parameters
row
Row<TFeatures, TData>
expanded?
boolean
Returns
void
Example
row_toggleExpanded(row)AI 翻译查看英文原文