table_resetExpanded

Function: table_resetExpanded()

ts
function table_resetExpanded<TFeatures, TData>(table, defaultState?): void;

Defined in: features/row-expanding/rowExpandingFeature.utils.ts:104

Resets expanded to the configured initial state or feature default.

With no argument, the reset clones table.initialState.expanded when it exists. Passing true ignores initial state and resets to {}.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

defaultState?

boolean

Returns

void

Example

ts
table_resetExpanded(table)
table_resetExpanded(table, true)