You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The **data view toolbar** component renders a default opinionated data view toolbar above or below the data section.
28
28
29
-
Data view toolbar can contain a `pagination`, `bulkSelect` or any other children content passed. The preffered way of passing children toolbar items is using the [toolbar item](/components/toolbar#toolbar-items) component.
29
+
Data view toolbar can contain a `pagination`, `bulkSelect`, `actions` or other children content passed. The preffered way of passing children toolbar items is using the [toolbar item](/components/toolbar#toolbar-items) component.
30
30
31
31
### Basic toolbar example
32
32
33
33
```js file="./DataViewToolbarExample.tsx"
34
34
35
35
```
36
36
37
+
# Toolbar actions
38
+
Data view toolbar can display actions using the `actions` property accepting a React node. You can make use of a predefined [responsive actions](/extensions/component-groups/responsive-actions) component from the [component groups](/extensions/component-groups/about-component-groups) extension.
39
+
40
+
### Actions configuration
41
+
42
+
### Actions example
43
+
44
+
```js file="./DataViewToolbarActionsExample.tsx"
45
+
46
+
```
47
+
37
48
## Data view table
38
49
39
50
The **data view table** component renders your columns and rows definition into a [table](/components/table) component.
Copy file name to clipboardExpand all lines: packages/module/patternfly-docs/content/extensions/data-view/examples/Components/DataViewToolbarExample.tsx
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,15 @@ import DataViewToolbar from '@patternfly/react-data-view/dist/dynamic/DataViewTo
Copy file name to clipboardExpand all lines: packages/module/patternfly-docs/content/extensions/data-view/examples/Functionality/Functionality.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ This example uses the URL for persisting the pagination state.
62
62
Allows to select data records inside the data view and show the selection state.
63
63
64
64
### Toolbar usage
65
-
Data view toolbar can display a bulk selection component using the `bulkSelect` property accepting a React node. You can make use of a predefined [bulk select](/extensions/component-groups/bulk-select) from the [component groups](/extensions/component-groups/about-component-groups) extension.
65
+
Data view toolbar can display a bulk selection component using the `bulkSelect` property accepting a React node. You can make use of a predefined [bulk select](/extensions/component-groups/bulk-select)component from the [component groups](/extensions/component-groups/about-component-groups) extension.
66
66
67
67
### Selection state
68
68
@@ -84,4 +84,3 @@ The `useDataViewSelection` hook manages the selection state of the data view.
0 commit comments