table_toggleAllPageRowsSelected

Function: table_toggleAllPageRowsSelected()

ts
function table_toggleAllPageRowsSelected<TFeatures, TData>(table, value?): void;

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

Selects or deselects every selectable row on the current page.

Omitting value toggles based on table_getIsAllPageRowsSelected(table). Child rows are included when sub-row selection allows it.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal\<`TFeatures`, `TData`\>

value?

boolean

Returns

void

Example

ts
table_toggleAllPageRowsSelected(table)