Loading problem…
This problem builds on data-table-global-search. Complete that first, then load your solution to continue.
Build a production-ready Data Table component that extends the base Data Table with CSV export 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[];
enableExport?: boolean;
}<DataTable
data={data}
columns={columns}
enableExport={true}
/>