本页还没有译文
本页 17 段还没译成Français,下面显示的是英文原文。table_setExpanded
还没翻译译自英文(tanstack.com)本页 17 段都还没译
function table_setExpanded<TFeatures, TData>(table, updater): void;Defined in: features/row-expanding/rowExpandingFeature.utils.ts:66
Routes an expanded-state updater through the table's expanded change handler.
The updater may be true, a row-id map, or a function of the previous
expanded state, matching the instance table.setExpanded behavior.
Type Parameters
TFeatures
TFeatures extends TableFeatures
TData
TData extends RowData
Parameters
table
Table_Internal<TFeatures, TData>
updater
Returns
void
Example
table_setExpanded(table, (old) => ({ ...old, [rowId]: true }))AI 翻译查看英文原文