Loading problem…
This problem builds on data-table. Complete that first, then load your solution to continue.
Build a production-ready Data Table component that extends the base Data Table with inline editing functionality. This builds on top of the sorting feature from the base Data Table.
interface Column {
key: string;
label: string;
sortable?: boolean;
editable?: boolean;
}
interface DataTableProps {
data: Record<string, any>[];
columns: Column[];
onDataChange?: (rowIndex: number, columnKey: string, value: any) => void;
}<DataTable
data={data}
columns={columns}
onDataChange={(rowIndex, columnKey, value) => {
// Handle data update
}}
/>