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.
TFeatures extends TableFeatures
TFeatures
TFeatures
import { tableFeatures, columnVisibilityFeature, rowPinningFeature } from '@tanstack/react-table'
const _features = tableFeatures({ columnVisibilityFeature, rowPinningFeature });
const table = useTable({ _features, rowModels: {}, columns, data });