test(data-table): assert filteredRowIds prop

This commit is contained in:
Eric Liu 2022-08-17 19:16:25 -07:00
commit f335f036b4

View file

@ -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);
}}" }}"