diff --git a/src/DataTable/ToolbarSearch.svelte b/src/DataTable/ToolbarSearch.svelte index 30e53a44..f0064883 100644 --- a/src/DataTable/ToolbarSearch.svelte +++ b/src/DataTable/ToolbarSearch.svelte @@ -28,6 +28,12 @@ */ export let shouldFilterRows = false; + /** + * The filtered row ids + * @type {ReadonlyArray} + */ + export let filteredRowIds = []; + /** Specify the tabindex */ export let tabindex = "0"; @@ -65,6 +71,7 @@ } tableRows.set(rows); + filteredRowIds = rows.map((row) => row.id); } async function expandSearch() {