diff --git a/src/lib/components/Table/TableContent.svelte b/src/lib/components/Table/TableContent.svelte index a4594228..6aa0528e 100644 --- a/src/lib/components/Table/TableContent.svelte +++ b/src/lib/components/Table/TableContent.svelte @@ -50,6 +50,7 @@ optionsComponent, // Custom component to render in the last column defaultPageSize = 10, // Default page size - number of rows to display per page toggle = false, // Whether to display the fitToScreen toggle + search = true, // Whether to display the search input pageSizes = [5, 10, 15, 20], // Page sizes to display in the pagination component fitToScreen = true, // Whether to fit the table to the screen, exportable = false, // Whether to display the export button and enable export functionality @@ -154,7 +155,7 @@ // Render the cell with the provided component, or use the toStringFn if provided, or just use the value cell: ({ value, row }) => { return renderComponent - ? createRender(renderComponent, { value, row }) + ? createRender(renderComponent, { value, row, dispatchFn: actionDispatcher }) : toStringFn ? toStringFn(value) : value; @@ -319,8 +320,6 @@ // Format server columns to the client columns if (response.columns !== undefined) { - console.log(response); - columns = convertServerColumns(response.columns, columns); const clientCols = response.columns.reduce((acc, col) => { @@ -369,7 +368,7 @@ {#if $data.length > 0 || (columns && Object.keys(columns).length > 0)}