mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
test(data-table): assert filteredRowIds
prop
This commit is contained in:
parent
e6910e2d42
commit
f335f036b4
1 changed files with 3 additions and 0 deletions
|
@ -68,6 +68,8 @@
|
||||||
if (new Date(a) > new Date(b)) return 1;
|
if (new Date(a) > new Date(b)) return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let filteredRowIds = [];
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<DataTable
|
<DataTable
|
||||||
|
@ -117,6 +119,7 @@
|
||||||
<Toolbar>
|
<Toolbar>
|
||||||
<ToolbarContent>
|
<ToolbarContent>
|
||||||
<ToolbarSearch
|
<ToolbarSearch
|
||||||
|
bind:filteredRowIds
|
||||||
shouldFilterRows="{(row, value) => {
|
shouldFilterRows="{(row, value) => {
|
||||||
return row.name.includes(value);
|
return row.name.includes(value);
|
||||||
}}"
|
}}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue