table_resetCellSelection
function table_resetCellSelection<TFeatures, TData>(table, defaultState?): void;Defined in: features/cell-selection/cellSelectionFeature.utils.ts:80
Resets cellSelection to the configured initial state or feature default.
With no argument, the reset clones table.initialState.cellSelection when it
exists. Passing true ignores initial state and resets to an empty selection.
Type Parameters
TFeatures
TFeatures extends TableFeatures
TData
TData extends RowData
Parameters
table
Table_Internal<TFeatures, TData>
defaultState?
boolean
Returns
void
Example
table_resetCellSelection(table, true)