Export all pages of tables

This commit is contained in:
Konstantin Wohlwend 2024-08-08 21:40:34 -07:00
parent fd74852e6d
commit 436400dd22

View File

@ -69,7 +69,7 @@ export function DataTableToolbar<TData>({
};
const rowModel = table.getRowModel();
const rowModel = table.getCoreRowModel();
const rows = rowModel.rows.map(row => Object.fromEntries(row.getAllCells().map(c => [c.column.id, renderCellValue(c)]).filter(([_, v]) => v !== undefined)));
console.log(table.getAllColumns());
if (rows.length === 0) {