T
TanStack3y ago
rare-sapphire

How to get the data for a specific column

I want to fetch all the data that's present in a specific column
1 Reply
rare-sapphire
rare-sapphireOP3y ago
I figured it out, you can just invoke table.getColumn("column-name").getFacetedRowModel() But the getFacetedRowModel Funciton needs to be included in the table constructor
const table = useReactTable<Trade>({
data: trades,
...
getFacetedRowModel: getFacetedRowModel(),
...
});
const table = useReactTable<Trade>({
data: trades,
...
getFacetedRowModel: getFacetedRowModel(),
...
});

Did you find this page helpful?