Loading problem…
This problem builds on data-table-pagination. Complete that first, then load your solution to continue.
Build a production-ready Data Table component that extends the base Data Table with virtual scrolling functionality. This builds on top of the sorting feature from the base Data Table.
interface Column {
key: string;
label: string;
sortable?: boolean;
}
interface DataTableProps {
data: Record<string, any>[];
columns: Column[];
rowHeight?: number;
overscan?: number;
}<DataTable
data={data}
columns={columns}
rowHeight={40}
overscan={5}
/>