Table API Reference
Column API Reference
Row API Reference
Cell API Reference
Header API Reference
Features API Reference
- stockFeatures
- coreFeatures
- coreCellsFeature
- coreColumnsFeature
- coreHeadersFeature
- coreRowModelsFeature
- coreRowsFeature
- coreTablesFeature
- cellSpanningFeature
- columnFilteringFeature
- columnFacetingFeature
- rowAggregationFeature
- columnGroupingFeature
- columnOrderingFeature
- columnPinningFeature
- columnResizingFeature
- columnSizingFeature
- columnVisibilityFeature
- globalFilteringFeature
- rowExpandingFeature
- rowPaginationFeature
- rowPinningFeature
- rowSelectionFeature
- rowSortingFeature
- filterFns
- sortFns
- aggregationFns
- ColumnFilter
- ColumnPinningState
- ColumnSort
- PaginationState
- RowPinningState
- columnResizingState
- FilterFn
- FilterFns
- FilterMeta
- SortFn
- SortFns
- AggregationFns
- AggregationContext
- AggregationMergeContext
- AggregationFnDef
- AggregationFnDescriptor
- AggregationValueContext
- AggregationValueResult
- constructAggregationFn
- ColumnFiltersState
- ColumnOrderState
- ColumnPinningPosition
- ColumnResizeDirection
- ColumnResizeMode
- ColumnSizingState
- ColumnVisibilityState
- ExpandedState
- GroupingState
- RowPinningPosition
- RowSelectionState
- SortDirection
- SortingState
- AggregationFnOption
- AggregationResult
- FilterFnOption
- SortFnOption
- BuiltInAggregationFn
- BuiltInFilterFn
- BuiltInSortFn
Static Functions API Reference
Legacy API Reference
- Legacy API Overview
- useLegacyTable
- legacyCreateColumnHelper
- getCoreRowModel
- getFilteredRowModel
- getSortedRowModel
- getGroupedRowModel
- getExpandedRowModel
- getPaginationRowModel
- getFacetedRowModel
- getFacetedMinMaxValues
- getFacetedUniqueValues
- LegacyRowModelOptions
- LegacyTable
- LegacyTableOptions
- LegacyReactTable
- LegacyColumnDef
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#
- Table_Table<TFeatures, TData>.Table_Columns<TFeatures, TData>.Table_Rows<TFeatures, TData>.Table_RowModels<TFeatures, TData>.Table_Headers<TFeatures, TData>
Type Parameters#
TFeatures#
TFeatures extends TableFeatures
TData#
TData extends RowData
Properties#
_cellInstanceInitFns#
_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?#
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#
_columnInstanceInitFns#
_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?#
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#
_features#
readonly _features: Partial<CoreFeatures> & TFeatures;Defined in: core/table/coreTablesFeature.types.ts:185
The features that are enabled for the table.
Inherited from#
_headerGroupInstanceInitFns#
_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#
_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#
Header<TFeatures, TData, TValue>
Returns#
void
Inherited from#
Table_Table._headerInstanceInitFns
_headerPrototype?#
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#
_reactivity#
readonly _reactivity: TableReactivityBindings;Defined in: core/table/coreTablesFeature.types.ts:163
Table reactivity bindings for interacting with TanStack Store.
Inherited from#
_rowInstanceInitFns#
_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#
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#
_rowModels#
readonly _rowModels: CachedRowModels<TFeatures, TData>;Defined in: core/table/coreTablesFeature.types.ts:209
The row models that are enabled for the table.
Inherited from#
_rowPrototype?#
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#
atoms#
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#
baseAtoms#
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#
getAllColumns#
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#
getAllFlatColumns#
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#
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#
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#
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#
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#
getCoreRowModel#
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#
Table_RowModels.getCoreRowModelgetDefaultColumnDef#
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#
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#
Table_RowModels.getExpandedRowModelgetFacetedMinMaxValues#
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#
Table_RowModels.getFacetedMinMaxValuesgetFacetedRowModel#
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#
Table_RowModels.getFacetedRowModelgetFacetedUniqueValues#
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#
Table_RowModels.getFacetedUniqueValuesgetFilteredRowModel#
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#
Table_RowModels.getFilteredRowModelgetFlatHeaders#
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#
getFooterGroups#
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#
getGroupedRowModel#
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#
Table_RowModels.getGroupedRowModelgetHeaderGroups#
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#
getLeafHeaders#
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#
getMaxSubRowDepth#
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#
getPaginatedRowModel#
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#
Table_RowModels.getPaginatedRowModelgetPreExpandedRowModel#
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#
Table_RowModels.getPreExpandedRowModelgetPreFilteredRowModel#
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#
Table_RowModels.getPreFilteredRowModelgetPreGroupedRowModel#
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#
Table_RowModels.getPreGroupedRowModelgetPrePaginatedRowModel#
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#
Table_RowModels.getPrePaginatedRowModelgetPreSortedRowModel#
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#
Table_RowModels.getPreSortedRowModelgetRow#
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#
getRowId#
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#
getRowModel#
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#
Table_RowModels.getRowModelgetRowsInDisplayOrder#
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#
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#
Table_RowModels.getSortedRowModelinitialState#
readonly initialState: ExtractFeatureMapTypes<TFeatures>;Defined in: core/table/coreTablesFeature.types.ts:232
This is the resolved initial state of the table.
Inherited from#
options#
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#
optionsStore?#
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#
reset#
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#
setOptions#
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#
store#
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.