Docs
CodeRabbit
Cloudflare
Railway
OpenRouter
SerpAPI
AG Grid
WorkOS
Netlify
Clerk
Unkey
Electric
Sentry
Prisma
CodeRabbit
Cloudflare
Railway
OpenRouter
SerpAPI
AG Grid
WorkOS
Netlify
Clerk
Unkey
Electric
Sentry
Prisma
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
Table API Reference

tableFeatures

Function: tableFeatures()

ts
function tableFeatures<TFeatures>(features): TFeatures;
function tableFeatures<TFeatures>(features): TFeatures;

Defined in: helpers/tableFeatures.ts:14

A helper function to help define the features that are to be imported and applied to a table instance. Use this utility to make it easier to have the correct type inference for the features that are being imported. Note: It is recommended to use this utility statically outside of a component.

Type Parameters

TFeatures

TFeatures extends TableFeatures

Parameters

features

TFeatures

Returns

TFeatures

Example

plaintext
import { tableFeatures, columnVisibilityFeature, rowPinningFeature } from '@tanstack/react-table'
const features = tableFeatures({ columnVisibilityFeature, rowPinningFeature });
const table = useTable({ features, rowModels: {}, columns, data });
import { tableFeatures, columnVisibilityFeature, rowPinningFeature } from '@tanstack/react-table'
const features = tableFeatures({ columnVisibilityFeature, rowPinningFeature });
const table = useTable({ features, rowModels: {}, columns, data });