From ae6330d7ddd3ab7c257a4f3771c6ebd5469a3731 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sat, 30 Apr 2022 09:32:11 -0700 Subject: [PATCH] docs(data-table): add "Batch selection" example --- docs/src/pages/components/DataTable.svx | 8 ++++- .../DataTable/DataTableBatchSelection.svelte | 34 +++++++------------ 2 files changed, 19 insertions(+), 23 deletions(-) diff --git a/docs/src/pages/components/DataTable.svx b/docs/src/pages/components/DataTable.svx index 9f38d71d..a541f573 100644 --- a/docs/src/pages/components/DataTable.svx +++ b/docs/src/pages/components/DataTable.svx @@ -1077,10 +1077,16 @@ In the following example, each row in the sortable data table has an overflow me -### Initial selected rows +### Batch selection +### Batch selection with initial selected rows + +Use the `selectedRowIds` prop to specify which rows should be selected. + + + ### Selectable with batch actions diff --git a/docs/src/pages/framed/DataTable/DataTableBatchSelection.svelte b/docs/src/pages/framed/DataTable/DataTableBatchSelection.svelte index 8283c592..e951ae01 100644 --- a/docs/src/pages/framed/DataTable/DataTableBatchSelection.svelte +++ b/docs/src/pages/framed/DataTable/DataTableBatchSelection.svelte @@ -1,29 +1,19 @@