diff --git a/docs/src/pages/components/DataTable.svx b/docs/src/pages/components/DataTable.svx index 2c130b56..059c7e2d 100644 --- a/docs/src/pages/components/DataTable.svx +++ b/docs/src/pages/components/DataTable.svx @@ -1111,10 +1111,20 @@ Use the `selectedRowIds` prop to specify which rows should be selected. -### Selectable with batch actions +### Batch selection with batch actions toolbar +### Batch selection with controlled toolbar + +By default, `ToolbarBatchActions` is activated if one or more rows is selected. Clicking "Cancel" will deactivate it. + +Use the `active` prop to control the toolbar. Note that it will still activate if one or more rows are selected. + +You can also prevent the default "Cancel" behavior in the dispatched `on:cancel` event. + + + ### Selectable (radio) diff --git a/docs/src/pages/components/InlineNotification.svx b/docs/src/pages/components/InlineNotification.svx index d976ee49..3f435777 100644 --- a/docs/src/pages/components/InlineNotification.svx +++ b/docs/src/pages/components/InlineNotification.svx @@ -1,4 +1,5 @@ --- +components: ["InlineNotification", "NotificationActionButton"] source: Notification/InlineNotification.svelte --- @@ -15,12 +16,6 @@ source: Notification/InlineNotification.svelte `InlineNotification` is a controlled component. Prevent the default close behavior using the `e.preventDefault()` method in the dispatched `on:close` event. - -
- Svelte version 3.48.0 or greater is required. -
-
- { e.preventDefault(); // custom close logic (e.g., transitions) diff --git a/docs/src/pages/components/ToastNotification.svx b/docs/src/pages/components/ToastNotification.svx index 1eb20fa4..40b9a424 100644 --- a/docs/src/pages/components/ToastNotification.svx +++ b/docs/src/pages/components/ToastNotification.svx @@ -3,7 +3,7 @@ source: Notification/ToastNotification.svelte --- @@ -15,12 +15,6 @@ source: Notification/ToastNotification.svelte `ToastNotification` is a controlled component. Prevent the default close behavior using the `e.preventDefault()` method in the dispatched `on:close` event. - -
- Svelte version 3.48.0 or greater is required. -
-
- { e.preventDefault(); // custom close logic (e.g., transitions) diff --git a/docs/src/pages/framed/DataTable/DataTableBatchSelectionToolbarControlled.svelte b/docs/src/pages/framed/DataTable/DataTableBatchSelectionToolbarControlled.svelte new file mode 100644 index 00000000..08e5981e --- /dev/null +++ b/docs/src/pages/framed/DataTable/DataTableBatchSelectionToolbarControlled.svelte @@ -0,0 +1,63 @@ + + + + + + + + + + + +