mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
parent
1462b2ee9c
commit
2df7b92269
9 changed files with 218 additions and 25 deletions
17
types/DataTable/ToolbarSearch.svelte.d.ts
vendored
17
types/DataTable/ToolbarSearch.svelte.d.ts
vendored
|
@ -27,6 +27,23 @@ export interface ToolbarSearchProps
|
|||
*/
|
||||
disabled?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to filter table rows using the search value.
|
||||
*
|
||||
* If `true`, the default search excludes `id`, `cells` fields and
|
||||
* only does a basic comparison on string and number type cell values.
|
||||
*
|
||||
* To implement your own client-side filtering, pass a function
|
||||
* that accepts a row and value and returns a boolean.
|
||||
* @default false
|
||||
*/
|
||||
shouldFilterRows?:
|
||||
| boolean
|
||||
| ((
|
||||
rows: import("./DataTable.svelte").DataTableRow,
|
||||
value: number | string
|
||||
) => boolean);
|
||||
|
||||
/**
|
||||
* Specify the tabindex
|
||||
* @default "0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue