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

Function: row_getPinnedIndex()

ts
function row_getPinnedIndex<TFeatures, TData>(row): number;
function row_getPinnedIndex<TFeatures, TData>(row): number;

Defined in: features/row-pinning/rowPinningFeature.utils.ts:259

Finds this row's visible index within its pinned region.

Unpinned rows return -1.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

row

Row<TFeatures, TData>

Returns

number

Example

ts
const index = row_getPinnedIndex(row)
const index = row_getPinnedIndex(row)