diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 4231168c..047bc719 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -4532,9 +4532,10 @@ None. ### Slots -| Slot name | Default | Props | Fallback | -| :-------- | :------ | :---- | :------- | -| -- | Yes | -- | -- | +| Slot name | Default | Props | Fallback | +| :-------- | :------ | :---- | :------------------ | +| -- | Yes | -- | -- | +| cancel | No | -- | Cancel | ### Events diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 89191d30..82788382 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -12541,7 +12541,15 @@ "reactive": false } ], - "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], + "slots": [ + { "name": "__default__", "default": true, "slot_props": "{}" }, + { + "name": "cancel", + "default": false, + "fallback": "Cancel", + "slot_props": "{}" + } + ], "events": [], "typedefs": [], "rest_props": { "type": "Element", "name": "div" } diff --git a/src/DataTable/ToolbarBatchActions.svelte b/src/DataTable/ToolbarBatchActions.svelte index fb1b2e7e..edc0169c 100644 --- a/src/DataTable/ToolbarBatchActions.svelte +++ b/src/DataTable/ToolbarBatchActions.svelte @@ -51,7 +51,7 @@ tabindex="{showActions ? '0' : '-1'}" on:click="{ctx.resetSelectedRowIds}" > - Cancel + Cancel diff --git a/types/DataTable/ToolbarBatchActions.d.ts b/types/DataTable/ToolbarBatchActions.d.ts index e046a567..3c1f46a6 100644 --- a/types/DataTable/ToolbarBatchActions.d.ts +++ b/types/DataTable/ToolbarBatchActions.d.ts @@ -13,5 +13,5 @@ export interface ToolbarBatchActionsProps export default class ToolbarBatchActions extends SvelteComponentTyped< ToolbarBatchActionsProps, {}, - { default: {} } + { default: {}; cancel: {} } > {}