Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Table API Reference
Column API Reference
Row API Reference
Cell API Reference
Header API Reference
Features API Reference
Static Functions API Reference
Legacy API Reference
Static Functions API Reference

row_toggleSelected

Function: row_toggleSelected()

ts
function row_toggleSelected<TFeatures, TData>(
   row, 
   value?, 
   opts?): void;
function row_toggleSelected<TFeatures, TData>(
   row, 
   value?, 
   opts?): void;

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

Selects or deselects this row.

Omitting value toggles the row. Child rows are selected recursively unless opts.selectChildren is false or sub-row selection is disabled.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

row

Row<TFeatures, TData>

value?

boolean

opts?

selectChildren?

boolean

Returns

void

Example

ts
row_toggleSelected(row)
row_toggleSelected(row)