mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
feat(toolbar-search): add filteredRowIds
prop to support pagination (#1454)
Closes #1393 * feat(toolbar-search): add `filteredRowIds` prop * Run "yarn build:docs" * test(data-table): assert `filteredRowIds` prop * docs(data-table): add pagination to default filterable examples
This commit is contained in:
parent
2d99fe45c0
commit
dbe33d5cbb
8 changed files with 69 additions and 30 deletions
|
@ -28,6 +28,12 @@
|
|||
*/
|
||||
export let shouldFilterRows = false;
|
||||
|
||||
/**
|
||||
* The filtered row ids
|
||||
* @type {ReadonlyArray<import("./DataTable.svelte").DataTableRowId>}
|
||||
*/
|
||||
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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue