mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
docs: add DataTable
example "Batch selection with controlled toolbar" (#1447)
* docs(inline-notification): add `NotificationActionButton` to Component API * docs(data-table): rename example "Selectable with batch actions" * docs(data-table): add example "Batch selection with controlled toolbar" * docs(notification): remove note on minimum Svelte version This banner is redundant since the minimum Svelte version is displayed in the README and on the home page of the docs.
This commit is contained in:
parent
8fea168ffd
commit
b42f9ba258
4 changed files with 76 additions and 14 deletions
|
@ -1111,10 +1111,20 @@ Use the `selectedRowIds` prop to specify which rows should be selected.
|
|||
|
||||
<FileSource src="/framed/DataTable/DataTableBatchSelectionInitial" />
|
||||
|
||||
### Selectable with batch actions
|
||||
### Batch selection with batch actions toolbar
|
||||
|
||||
<FileSource src="/framed/DataTable/DataTableBatchSelectionToolbar" />
|
||||
|
||||
### 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.
|
||||
|
||||
<FileSource src="/framed/DataTable/DataTableBatchSelectionToolbarControlled" />
|
||||
|
||||
### Selectable (radio)
|
||||
|
||||
<FileSource src="/framed/DataTable/RadioSelectableDataTable" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue