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

column_getStart

ts
function column_getStart<TFeatures, TData, TValue>(column, position?): number;
function column_getStart<TFeatures, TData, TValue>(column, position?): number;

Defined in: features/column-sizing/columnSizingFeature.utils.ts:181

Computes the offset from the start edge of a pinning region to this column.

The value is the sum of all previous visible leaf column sizes in the requested 'start', 'center', or 'end' region.

start and end are logical positions. In LTR languages/layouts, start usually corresponds to left and end to right. In RTL languages/layouts, start usually corresponds to right and end to left.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

TValue

TValue extends unknown = unknown

Parameters

column

Column_Internal<TFeatures, TData, TValue>

position?

| ColumnPinningPosition | "center"

Returns

number

Example

ts
const startOffset = column_getStart(column, 'start')
const startOffset = column_getStart(column, 'start')