diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 0f135b38..51375cf7 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -4501,6 +4501,7 @@ None. | Prop name | Required | Kind | Reactive | Type | Default value | Description | | :--------------- | :------- | :--------------- | :------- | ---------------------------------------------------------------------------------------------------------------------- | ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ref | No | let | Yes | null | HTMLInputElement | null | Obtain a reference to the input HTML element | +| filteredRowIds | No | let | Yes | ReadonlyArray | [] | The filtered row ids | | expanded | No | let | Yes | boolean | false | Set to `true` to expand the search bar | | value | No | let | Yes | number | string | "" | Specify the value of the search input | | persistent | No | let | No | boolean | false | Set to `true` to keep the search bar expanded | diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 0a032b3c..68d92c00 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -13829,6 +13829,18 @@ "constant": false, "reactive": false }, + { + "name": "filteredRowIds", + "kind": "let", + "description": "The filtered row ids", + "type": "ReadonlyArray", + "value": "[]", + "isFunction": false, + "isFunctionDeclaration": false, + "isRequired": false, + "constant": false, + "reactive": true + }, { "name": "tabindex", "kind": "let", diff --git a/types/DataTable/ToolbarSearch.svelte.d.ts b/types/DataTable/ToolbarSearch.svelte.d.ts index 9ac80638..67a6bad4 100644 --- a/types/DataTable/ToolbarSearch.svelte.d.ts +++ b/types/DataTable/ToolbarSearch.svelte.d.ts @@ -44,6 +44,12 @@ export interface ToolbarSearchProps value: number | string ) => boolean); + /** + * The filtered row ids + * @default [] + */ + filteredRowIds?: ReadonlyArray; + /** * Specify the tabindex * @default "0"