Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
Neon
WorkOS
Clerk
Convex
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
Neon
WorkOS
Clerk
Convex
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
Legacy API Reference
Enterprise
Table API Reference

TableOptions_Core

Interface: TableOptions_Core<TFeatures, TData>

Defined in: types/TableOptions.ts:27

Extends

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Properties

_features

ts
_features: TFeatures;

Defined in: core/table/coreTablesFeature.types.ts:22

The features that you want to enable for the table.

Inherited from

TableOptions_Table._features


_rowModels?

ts
optional _rowModels: CreateRowModels_All<TFeatures, TData>;

Defined in: core/table/coreTablesFeature.types.ts:26

The row model options that you want to enable for the table.

Inherited from

TableOptions_Table._rowModels


autoResetAll?

ts
optional autoResetAll: boolean;

Defined in: core/table/coreTablesFeature.types.ts:30

Set this option to override any of the autoReset... feature options.

Inherited from

TableOptions_Table.autoResetAll


columns

ts
columns: readonly ColumnDef<TFeatures, TData, unknown>[];

Defined in: core/columns/coreColumnsFeature.types.ts:68

The array of column defs to use for the table.

Inherited from

TableOptions_Columns.columns


data

ts
data: readonly TData[];

Defined in: core/table/coreTablesFeature.types.ts:34

The data for the table to display. When the data option changes reference, the table will reprocess the data.

Inherited from

TableOptions_Table.data


defaultColumn?

ts
optional defaultColumn: Partial<ColumnDef<TFeatures, TData, unknown>>;

Defined in: core/columns/coreColumnsFeature.types.ts:72

Default column options to use for all column defs supplied to the table.

Inherited from

TableOptions_Columns.defaultColumn


getRowId()?

ts
optional getRowId: (originalRow, index, parent?) => string;

Defined in: core/rows/coreRowsFeature.types.ts:90

This optional function is used to derive a unique ID for any given row. If not provided the rows index is used (nested rows join together with . using their grandparents' index eg. index.index.index). If you need to identify individual rows that are originating from any server-side operations, it's suggested you use this function to return an ID that makes sense regardless of network IO/ambiguity eg. a userId, taskId, database ID field, etc.

Parameters

originalRow

TData

index

number

parent?

Row<TFeatures, TData>

Returns

string

Example

ts
getRowId: row => row.userId

Inherited from

TableOptions_Rows.getRowId


getSubRows()?

ts
optional getSubRows: (originalRow, index) => readonly TData[] | undefined;

Defined in: core/rows/coreRowsFeature.types.ts:99

This optional function is used to access the sub rows for any given row. If you are using nested rows, you will need to use this function to return the sub rows object (or undefined) from the row.

Parameters

originalRow

TData

index

number

Returns

readonly TData[] | undefined

Example

ts
getSubRows: row => row.subRows

Inherited from

TableOptions_Rows.getSubRows


initialState?

ts
optional initialState: Partial<TableState<TFeatures>>;

Defined in: core/table/coreTablesFeature.types.ts:39

Use this option to optionally pass initial state to the table. This state will be used when resetting various table states either automatically by the table (eg. options.autoResetPageIndex) or via functions like table.resetRowSelection(). Most reset function allow you optionally pass a flag to reset to a blank/default state instead of the initial state. Table state will not be reset when this object changes, which also means that the initial state object does not need to be stable.

Inherited from

TableOptions_Table.initialState


mergeOptions()?

ts
optional mergeOptions: (defaultOptions, options) => TableOptions<TFeatures, TData>;

Defined in: core/table/coreTablesFeature.types.ts:43

This option is used to optionally implement the merging of table options.

Parameters

defaultOptions

TableOptions<TFeatures, TData>

options

Partial<TableOptions<TFeatures, TData>>

Returns

TableOptions<TFeatures, TData>

Inherited from

TableOptions_Table.mergeOptions


meta?

ts
optional meta: TableMeta<TFeatures, TData>;

Defined in: core/table/coreTablesFeature.types.ts:50

You can pass any object to options.meta and access it anywhere the table is available via table.options.meta.

Inherited from

TableOptions_Table.meta


renderFallbackValue?

ts
optional renderFallbackValue: any;

Defined in: core/cells/coreCellsFeature.types.ts:67

Value used when the desired value is not found in the data.

Inherited from

TableOptions_Cell.renderFallbackValue


state?

ts
optional state: Partial<TableState<TFeatures>>;

Defined in: core/table/coreTablesFeature.types.ts:54

Pass in individual self-managed state to the table.

Inherited from

TableOptions_Table.state


store?

ts
optional store: Store<TableState<TFeatures>>;

Defined in: core/table/coreTablesFeature.types.ts:58

Optionally, provide your own external TanStack Store instance if you want to manage the table state externally.

Inherited from

TableOptions_Table.store