TanStack

Table_Core

Defined in: types/Table.ts:42

The core table object that only includes the core table functionality such as column, header, row, and table APIS. No features are included.

Extends

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Properties

_cellInstanceInitFns

ts
_cellInstanceInitFns: <TFeatures, TData, TValue>(cell) => void[];

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

Cache of the initCellInstanceData functions for features that define one.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

TValue

TValue extends unknown = unknown

Parameters

cell

Cell<TFeatures, TData, TValue>

Returns

void

Inherited from

Table_Table._cellInstanceInitFns


_cellPrototype?

ts
optional _cellPrototype?: object;

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

Prototype cache for Cell objects - shared by all cells in this table

Inherited from

Table_Table._cellPrototype


_columnInstanceInitFns

ts
_columnInstanceInitFns: <TFeatures, TData, TValue>(column) => void[];

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

Cache of the initColumnInstanceData functions for features that define one.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

TValue

TValue extends unknown = unknown

Parameters

column

Column<TFeatures, TData, TValue>

Returns

void

Inherited from

Table_Table._columnInstanceInitFns


_columnPrototype?

ts
optional _columnPrototype?: object;

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

Prototype cache for Column objects - shared by all columns in this table

Inherited from

Table_Table._columnPrototype


_features

ts
readonly _features: Partial<CoreFeatures> & TFeatures;

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

The features that are enabled for the table.

Inherited from

Table_Table._features


_headerGroupInstanceInitFns

ts
_headerGroupInstanceInitFns: <TFeatures, TData>(headerGroup) => void[];

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

Cache of the initHeaderGroupInstanceData functions for features that define one.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

headerGroup

HeaderGroup<TFeatures, TData>

Returns

void

Inherited from

Table_Table._headerGroupInstanceInitFns


_headerInstanceInitFns

ts
_headerInstanceInitFns: <TFeatures, TData, TValue>(header) => void[];

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

Cache of the initHeaderInstanceData functions for features that define one.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

TValue

TValue extends unknown = unknown

Parameters

Header<TFeatures, TData, TValue>

Returns

void

Inherited from

Table_Table._headerInstanceInitFns


_headerPrototype?

ts
optional _headerPrototype?: object;

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

Prototype cache for Header objects - shared by all headers in this table

Inherited from

Table_Table._headerPrototype


_reactivity

ts
readonly _reactivity: TableReactivityBindings;

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

Table reactivity bindings for interacting with TanStack Store.

Inherited from

Table_Table._reactivity


_rowInstanceInitFns

ts
_rowInstanceInitFns: <TFeatures, TData>(row) => void[];

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

Cache of the initRowInstanceData functions for features that define one.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

row

Row<TFeatures, TData>

Returns

void

Inherited from

Table_Table._rowInstanceInitFns


_rowModelFns

ts
readonly _rowModelFns: RowModelFns<TFeatures, TData>;

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

The row model processing functions that are used to process the data by features.

Inherited from

Table_Table._rowModelFns


_rowModels

ts
readonly _rowModels: CachedRowModels<TFeatures, TData>;

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

The row models that are enabled for the table.

Inherited from

Table_Table._rowModels


_rowPrototype?

ts
optional _rowPrototype?: object;

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

Prototype cache for Row objects - shared by all rows in this table

Inherited from

Table_Table._rowPrototype


atoms

ts
readonly atoms: Atoms<TFeatures>;

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

The readonly derived atoms for each TableState slice. Each derives from its corresponding baseAtom plus, optionally, a per-slice external atom or external state value (precedence: external atom > external state > base atom).

Inherited from

Table_Table.atoms


baseAtoms

ts
readonly baseAtoms: BaseAtoms<TFeatures>;

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

The internal writable atoms for each TableState slice. This is the library's single write surface — all state mutations from features land here.

Inherited from

Table_Table.baseAtoms


getAllColumns

ts
getAllColumns: () => Column<TFeatures, TData, unknown>[];

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

Normalizes options.columns into the table's nested column hierarchy.

Returns

Column<TFeatures, TData, unknown>[]

Inherited from

Table_Columns.getAllColumns


getAllFlatColumns

ts
getAllFlatColumns: () => Column<TFeatures, TData, unknown>[];

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

Flattens the nested column hierarchy, including parent/group columns.

Returns

Column<TFeatures, TData, unknown>[]

Inherited from

Table_Columns.getAllFlatColumns


getAllFlatColumnsById

ts
getAllFlatColumnsById: () => Record<string, Column<TFeatures, TData, unknown>>;

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

Returns a map of all flat columns by their ID.

Returns

Record<string, Column<TFeatures, TData, unknown>>

Inherited from

Table_Columns.getAllFlatColumnsById


getAllLeafColumns

ts
getAllLeafColumns: () => Column<TFeatures, TData, unknown>[];

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

Collects all terminal leaf columns, excluding parent/group columns.

Returns

Column<TFeatures, TData, unknown>[]

Inherited from

Table_Columns.getAllLeafColumns


getAllLeafColumnsById

ts
getAllLeafColumnsById: () => Record<string, Column<TFeatures, TData, unknown>>;

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

Returns a map of all leaf-node columns by their ID. This does not include parent columns.

Returns

Record<string, Column<TFeatures, TData, unknown>>

Inherited from

Table_Columns.getAllLeafColumnsById


getColumn

ts
getColumn: (columnId) =>
  | Column<TFeatures, TData, unknown>
  | undefined;

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

Returns a single column by its ID.

Parameters

columnId

string

Returns

| Column<TFeatures, TData, unknown> | undefined

Inherited from

Table_Columns.getColumn


getCoreRowModel

ts
getCoreRowModel: () => RowModel<TFeatures, TData>;

Defined in: core/row-models/coreRowModelsFeature.types.ts:34

Returns the core row model before any processing has been applied.

Returns

RowModel<TFeatures, TData>

Inherited from

ts
Table_RowModels.getCoreRowModel

getDefaultColumnDef

ts
getDefaultColumnDef: () => Partial<ColumnDef<TFeatures, TData, unknown>>;

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

Resolves built-in, feature-level, and user-defined default column options.

Returns

Partial<ColumnDef<TFeatures, TData, unknown>>

Inherited from

Table_Columns.getDefaultColumnDef


getExpandedRowModel

ts
getExpandedRowModel: () => RowModel<TFeatures, TData>;

Defined in: features/row-expanding/rowExpandingFeature.types.ts:135

Resolves the row model after expanded rows have been flattened into view.

Returns

RowModel<TFeatures, TData>

Inherited from

ts
Table_RowModels.getExpandedRowModel

getFacetedMinMaxValues

ts
getFacetedMinMaxValues: () => [number, number] | undefined;

Defined in: features/column-faceting/columnFacetingFeature.types.ts:35

Computes min/max numeric facet values for the active faceting context.

Requires a facetedMinMaxValues row-model factory on the features option.

Returns

[number, number] | undefined

Inherited from

ts
Table_RowModels.getFacetedMinMaxValues

getFacetedRowModel

ts
getFacetedRowModel: () => RowModel<TFeatures, TData>;

Defined in: features/column-faceting/columnFacetingFeature.types.ts:41

Computes the row model used to derive facet values.

Requires a facetedRowModel row-model factory on the features option.

Returns

RowModel<TFeatures, TData>

Inherited from

ts
Table_RowModels.getFacetedRowModel

getFacetedUniqueValues

ts
getFacetedUniqueValues: () => Map<any, number>;

Defined in: features/column-faceting/columnFacetingFeature.types.ts:47

Computes unique facet values and occurrence counts.

Requires a facetedUniqueValues row-model factory on the features option.

Returns

Map<any, number>

Inherited from

ts
Table_RowModels.getFacetedUniqueValues

getFilteredRowModel

ts
getFilteredRowModel: () => RowModel<TFeatures, TData>;

Defined in: features/column-filtering/columnFilteringFeature.types.ts:301

Resolves the row model after column and global filters have been applied.

Returns

RowModel<TFeatures, TData>

Inherited from

ts
Table_RowModels.getFilteredRowModel

getFlatHeaders

ts
getFlatHeaders: () => Header<TFeatures, TData, unknown>[];

Defined in: core/headers/coreHeadersFeature.types.ts:25

Flattens every header from every header group, including parent and placeholder headers.

Returns

Header<TFeatures, TData, unknown>[]

Inherited from

Table_Headers.getFlatHeaders


getFooterGroups

ts
getFooterGroups: () => HeaderGroup<TFeatures, TData>[];

Defined in: core/headers/coreHeadersFeature.types.ts:20

Builds footer groups by reversing the current header group order.

Returns

HeaderGroup<TFeatures, TData>[]

Inherited from

Table_Headers.getFooterGroups


getGroupedRowModel

ts
getGroupedRowModel: () => RowModel<TFeatures, TData>;

Defined in: features/column-grouping/columnGroupingFeature.types.ts:150

Resolves the row model after grouping has been applied.

Returns

RowModel<TFeatures, TData>

Inherited from

ts
Table_RowModels.getGroupedRowModel

getHeaderGroups

ts
getHeaderGroups: () => HeaderGroup<TFeatures, TData>[];

Defined in: core/headers/coreHeadersFeature.types.ts:16

Builds the visible header groups for the current column tree, visibility, and pinning state.

Returns

HeaderGroup<TFeatures, TData>[]

Inherited from

Table_Headers.getHeaderGroups


getLeafHeaders

ts
getLeafHeaders: () => Header<TFeatures, TData, unknown>[];

Defined in: core/headers/coreHeadersFeature.types.ts:29

Collects only leaf headers, excluding parent/group headers.

Returns

Header<TFeatures, TData, unknown>[]

Inherited from

Table_Headers.getLeafHeaders


getMaxSubRowDepth

ts
getMaxSubRowDepth: () => number;

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

Returns the deepest structural row depth in the core row model. Root rows are depth 0, direct sub-rows are depth 1, and so on.

Returns

number

Inherited from

Table_Rows.getMaxSubRowDepth


getPaginatedRowModel

ts
getPaginatedRowModel: () => RowModel<TFeatures, TData>;

Defined in: features/row-pagination/rowPaginationFeature.types.ts:141

Resolves the row model after pagination has sliced the current page.

Returns

RowModel<TFeatures, TData>

Inherited from

ts
Table_RowModels.getPaginatedRowModel

getPreExpandedRowModel

ts
getPreExpandedRowModel: () => RowModel<TFeatures, TData>;

Defined in: features/row-expanding/rowExpandingFeature.types.ts:139

Reads the row model immediately before expansion.

Returns

RowModel<TFeatures, TData>

Inherited from

ts
Table_RowModels.getPreExpandedRowModel

getPreFilteredRowModel

ts
getPreFilteredRowModel: () => RowModel<TFeatures, TData>;

Defined in: features/column-filtering/columnFilteringFeature.types.ts:305

Reads the row model immediately before filtering.

Returns

RowModel<TFeatures, TData>

Inherited from

ts
Table_RowModels.getPreFilteredRowModel

getPreGroupedRowModel

ts
getPreGroupedRowModel: () => RowModel<TFeatures, TData>;

Defined in: features/column-grouping/columnGroupingFeature.types.ts:154

Reads the row model immediately before grouping.

Returns

RowModel<TFeatures, TData>

Inherited from

ts
Table_RowModels.getPreGroupedRowModel

getPrePaginatedRowModel

ts
getPrePaginatedRowModel: () => RowModel<TFeatures, TData>;

Defined in: features/row-pagination/rowPaginationFeature.types.ts:145

Reads the row model immediately before pagination.

Returns

RowModel<TFeatures, TData>

Inherited from

ts
Table_RowModels.getPrePaginatedRowModel

getPreSortedRowModel

ts
getPreSortedRowModel: () => RowModel<TFeatures, TData>;

Defined in: features/row-sorting/rowSortingFeature.types.ts:297

Reads the row model immediately before sorting.

Returns

RowModel<TFeatures, TData>

Inherited from

ts
Table_RowModels.getPreSortedRowModel

getRow

ts
getRow: (id, searchAll?) => Row<TFeatures, TData>;

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

Returns the row with the given ID.

Parameters

id

string

searchAll?

boolean

Returns

Row<TFeatures, TData>

Inherited from

Table_Rows.getRow


getRowId

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

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

Returns the row id for a given row.

Parameters

_

TData

index

number

parent?

Row<TFeatures, TData>

Returns

string

Inherited from

Table_Rows.getRowId


getRowModel

ts
getRowModel: () => RowModel<TFeatures, TData>;

Defined in: core/row-models/coreRowModelsFeature.types.ts:38

Returns the final model after all processing from other used features has been applied. This is the row model that is most commonly used for rendering.

Returns

RowModel<TFeatures, TData>

Inherited from

ts
Table_RowModels.getRowModel

getRowsInDisplayOrder

ts
getRowsInDisplayOrder: () => Row<TFeatures, TData>[];

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

Returns the rows in the current display order and assigns their display indexes. When expanded rows bypass pagination, expanded descendants are included in this order. This is the memoized source for row.getDisplayIndex().

Returns

Row<TFeatures, TData>[]

Inherited from

Table_Rows.getRowsInDisplayOrder


getSortedRowModel

ts
getSortedRowModel: () => RowModel<TFeatures, TData>;

Defined in: features/row-sorting/rowSortingFeature.types.ts:301

Resolves the row model after sorting has been applied.

Returns

RowModel<TFeatures, TData>

Inherited from

ts
Table_RowModels.getSortedRowModel

initialState

ts
readonly initialState: ExtractFeatureMapTypes<TFeatures>;

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

This is the resolved initial state of the table.

Inherited from

Table_Table.initialState


options

ts
readonly options: TableOptions<TFeatures, TData>;

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

A read-only reference to the table's current options.

Inherited from

Table_Table.options


optionsStore?

ts
readonly optional optionsStore?: Atom<TableOptions<TFeatures, TData>>;

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

Writable atom for table options. Only created when createOptionsStore is true on the active core reactivity bindings. Adapters that opt out keep options as plain resolved data instead of backing them with an atom.

Inherited from

Table_Table.optionsStore


reset

ts
reset: () => void;

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

Resets the table's internal base atoms to table.initialState.

Prefer feature-specific reset APIs, such as resetPagination, when a state slice may be owned by an external atom or needs that feature's blank/default reset behavior. After resetting internal atoms, this also invokes feature reset hooks for mutable, transient table-instance data.

Returns

void

Inherited from

Table_Table.reset


setOptions

ts
setOptions: (newOptions) => void;

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

Updates the table options by applying a value or updater to the current resolved options and then merging them through options.mergeOptions.

Parameters

newOptions

Updater<TableOptions<TFeatures, TData>>

Returns

void

Inherited from

Table_Table.setOptions


store

ts
readonly store: ReadonlyStore<ExtractFeatureMapTypes<TFeatures, TableState_FeatureMap>>;

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

The readonly flat store for the table state. Derives from table.atoms only; never reads external state directly.

Inherited from

Table_Table.store