From c25b83f890396082a54df52b9ab2b8b3aabc313e Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sat, 12 Mar 2022 19:06:10 -0800 Subject: [PATCH] Run "yarn build:docs" --- COMPONENT_INDEX.md | 1 + docs/src/COMPONENT_API.json | 11 +++++++++++ types/DataTable/DataTable.svelte.d.ts | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 77cd8cf0..5910b3b8 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -997,6 +997,7 @@ export interface DataTableCell { | nonExpandableRowIds | let | No | DataTableRowId[] | [] | Specify the ids for rows that should not be expandable | | radio | let | No | boolean | false | Set to `true` for the radio selection variant | | batchSelection | let | No | boolean | false | Set to `true` to enable batch selection | +| nonSelectableRowIds | let | No | DataTableRowId[] | [] | Specify the ids of rows that should not be selectable | | stickyHeader | let | No | boolean | false | Set to `true` to enable a sticky header | | useStaticWidth | let | No | boolean | false | Set to `true` to use static width | | pageSize | let | No | number | 0 | Specify the number of items to display in a page | diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index d709392a..800f489e 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -2367,6 +2367,17 @@ "constant": false, "reactive": true }, + { + "name": "nonSelectableRowIds", + "kind": "let", + "description": "Specify the ids of rows that should not be selectable", + "type": "DataTableRowId[]", + "value": "[]", + "isFunction": false, + "isFunctionDeclaration": false, + "constant": false, + "reactive": false + }, { "name": "stickyHeader", "kind": "let", diff --git a/types/DataTable/DataTable.svelte.d.ts b/types/DataTable/DataTable.svelte.d.ts index e2f82176..6ba564e1 100644 --- a/types/DataTable/DataTable.svelte.d.ts +++ b/types/DataTable/DataTable.svelte.d.ts @@ -131,6 +131,12 @@ export interface DataTableProps */ selectedRowIds?: DataTableRowId[]; + /** + * Specify the ids of rows that should not be selectable + * @default [] + */ + nonSelectableRowIds?: DataTableRowId[]; + /** * Set to `true` to enable a sticky header * @default false