Skip to main content

getDefaultRowSelectionState

还没翻译译自英文(tanstack.com)本页 7 段都还没译

function getDefaultRowSelectionState(): RowSelectionState;

Defined in: features/row-selection/rowSelectionFeature.utils.ts:31

Creates the default row selection state.

The feature default is an empty map, meaning no rows are selected. Reset APIs use this value when defaultState is true.

Returns

RowSelectionState

Example

const selection = getDefaultRowSelectionState()