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

AccessorFn

Type Alias: AccessorFn()<TData, TValue>

ts
type AccessorFn<TData, TValue> = (originalRow, index) => TValue;
type AccessorFn<TData, TValue> = (originalRow, index) => TValue;

Defined in: types/ColumnDef.ts:49

Reads a cell value from an original row object.

The row index is provided for accessors that need stable position-aware derived values.

Type Parameters

TData

TData extends RowData

TValue

TValue extends CellData = CellData

Parameters

originalRow

TData

index

number

Returns

TValue