Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
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

table_getSelectedCellCount

ts
function table_getSelectedCellCount<TFeatures, TData>(table): number;
function table_getSelectedCellCount<TFeatures, TData>(table): number;

Defined in: features/cell-selection/cellSelectionFeature.utils.ts:1232

Returns the number of selected cells.

Uses rectangle arithmetic over the normalized, disjoint positive regions. A per-cell enableCellSelection predicate requires enumeration.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

table

Table_Internal<TFeatures, TData>

Returns

number

Example

ts
const count = table_getSelectedCellCount(table)
const count = table_getSelectedCellCount(table)