diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 45ccd2cf..348bedd6 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -4422,9 +4422,10 @@ None. ### Props -| Prop name | Required | Kind | Reactive | Type | Default value | Description | -| :------------------ | :------- | :--------------- | :------- | ---------------------------------------------- | --------------------------------------------------------------------------------------------------- | -------------------------------------- | -| formatTotalSelected | No | let | No | (totalSelected: number) => string | (totalSelected) => \`${totalSelected} item${totalSelected === 1 ? "" : "s"} selected\` | Override the total items selected text | +| Prop name | Required | Kind | Reactive | Type | Default value | Description | +| :------------------ | :------- | :--------------- | :------- | ---------------------------------------------- | --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | +| formatTotalSelected | No | let | No | (totalSelected: number) => string | (totalSelected) => \`${totalSelected} item${totalSelected === 1 ? "" : "s"} selected\` | Override the total items selected text | +| active | No | let | No | boolean | false | Set to `true` to show the toolbar regardless of row selection | ### Slots diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 6ffbcfef..8c9018d2 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -13668,6 +13668,18 @@ "isRequired": false, "constant": false, "reactive": false + }, + { + "name": "active", + "kind": "let", + "description": "Set to `true` to show the toolbar regardless of row selection", + "type": "boolean", + "value": "false", + "isFunction": false, + "isFunctionDeclaration": false, + "isRequired": false, + "constant": false, + "reactive": false } ], "moduleExports": [], diff --git a/types/DataTable/ToolbarBatchActions.svelte.d.ts b/types/DataTable/ToolbarBatchActions.svelte.d.ts index 9cf7306b..8e6aa3b2 100644 --- a/types/DataTable/ToolbarBatchActions.svelte.d.ts +++ b/types/DataTable/ToolbarBatchActions.svelte.d.ts @@ -8,6 +8,12 @@ export interface ToolbarBatchActionsProps * @default (totalSelected) => `${totalSelected} item${totalSelected === 1 ? "" : "s"} selected` */ formatTotalSelected?: (totalSelected: number) => string; + + /** + * Set to `true` to show the toolbar regardless of row selection + * @default false + */ + active?: boolean; } export default class ToolbarBatchActions extends SvelteComponentTyped<