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

cell_getRowSpan

ts
function cell_getRowSpan<TFeatures, TData, TValue>(cell): number;
function cell_getRowSpan<TFeatures, TData, TValue>(cell): number;

Defined in: features/cell-spanning/cellSpanningFeature.utils.ts:366

Returns how many rows this cell spans.

1 when it does not span, and 0 when a spanning cell above it covers it, matching the header.rowSpan convention where 0 means "skip this cell".

Deliberately not memoized: a per-cell memo would allocate a closure and a dependency array for every cell, costing more than the two lookups this performs against the table-level span index.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

TValue

TValue extends unknown = unknown

Parameters

cell

Cell<TFeatures, TData, TValue>

Returns

number

Example

ts
const rowSpan = cell_getRowSpan(cell)
const rowSpan = cell_getRowSpan(cell)