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

tableFeatures

Function: tableFeatures()

ts
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

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