diff --git a/src/lib/holocene/table/paginated-table/api-paginated.svelte b/src/lib/holocene/table/paginated-table/api-paginated.svelte index f968cc6d4..19d3e643f 100644 --- a/src/lib/holocene/table/paginated-table/api-paginated.svelte +++ b/src/lib/holocene/table/paginated-table/api-paginated.svelte @@ -26,6 +26,7 @@ type T = $$Generic; type $$Props = HTMLAttributes & { + id?: string; onError?: (error: Error | unknown) => void | undefined; onFetch: () => Promise>; onShiftUp?: (event: KeyboardEvent) => void | undefined; @@ -43,6 +44,7 @@ pageSizeOptions?: string[]; }; + export let id: string = null; export let onError: (error: Error) => void | undefined = undefined; export let onFetch: () => Promise>; export let onShiftUp: (event: KeyboardEvent) => void | undefined = undefined; @@ -169,7 +171,11 @@ - + diff --git a/src/lib/holocene/table/paginated-table/index.svelte b/src/lib/holocene/table/paginated-table/index.svelte index 926596acc..98e99ffd7 100644 --- a/src/lib/holocene/table/paginated-table/index.svelte +++ b/src/lib/holocene/table/paginated-table/index.svelte @@ -25,6 +25,7 @@ class="paginated-table" class:table-fixed={fixed} class:table-auto={!fixed} + {...$$restProps} > diff --git a/src/lib/holocene/table/paginated-table/paginated.svelte b/src/lib/holocene/table/paginated-table/paginated.svelte index 7ca01fe8c..e9d7cc6c3 100644 --- a/src/lib/holocene/table/paginated-table/paginated.svelte +++ b/src/lib/holocene/table/paginated-table/paginated.svelte @@ -18,6 +18,7 @@ type Item = $$Generic; + export let id: string = null; export let items: Item[]; export let variant: 'primary' | 'split' = 'primary'; export let updating = false; @@ -94,6 +95,7 @@ {maxHeight} visibleItems={$store.items} {fixed} + {id} >