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
**Note:** Data view lives in its own package [`@patternfly/react-data-view`](https://www.npmjs.com/package/@patternfly/react-data-view)
21
21
22
-
If you notice a bug, or if have a suggestion for improving the data view extension or its documentation, file an issue in [the react-data-view repository](https://github.com/patternfly/react-data-view/issues)! Before creating a new issue, make sure there is not already a pre-existing issue.
22
+
If you notice a bug, or if you have a suggestion for improving the data view extension or its documentation, file an issue in [the react-data-view repository](https://github.com/patternfly/react-data-view/issues)! Before creating a new issue, make sure there is not already a pre-existing issue.
23
23
24
24
## Basic data view
25
25
@@ -96,7 +96,7 @@ This example includes the following:
96
96
- An optional `searchParams` object
97
97
- An optional `setSearchParams` function
98
98
99
-
- While the hook works seamlessly with React Router library, you do not need to use it to take advantage of URL persistence. The `searchParams` and `setSearchParams` props can be managed using native browser APIs (`URLSearchParams` and `window.history.pushState`) or any other routing library of your choice. If you don't pass these two props, the pagination state will be stored internally without the URL usage.
99
+
- While the hook works seamlessly with the React Router library, you do not need to use it to take advantage of URL persistence. The `searchParams` and `setSearchParams` props can be managed using native browser APIs (`URLSearchParams` and `window.history.pushState`) or any other routing library of your choice. If you don't pass these two props, the pagination state will be stored internally without the URL usage.
100
100
101
101
You can also pass custom `pageParam` or `perPageParam` names, renaming the pagination parameters in the URL.
102
102
@@ -118,7 +118,7 @@ A basic data view table supports various customizations of the table head and bo
118
118
119
119
The `<DataViewTable>` component accepts the following props:
120
120
121
-
-`columns`: Defines the columns the table. Each item in the array can be a `ReactNode` (for simple heads) or an object with the following properties:
121
+
-`columns`: Defines the columns of the table. Each item in the array can be a `ReactNode` (for simple heads) or an object with the following properties:
122
122
-`cell` (`ReactNode`): Content to display in the column head
123
123
- Optional `props` (`ThProps`) to pass to the `<Th>` component, such as `width`, `sort`, and other table head cell properties.
124
124
@@ -197,5 +197,4 @@ This example illustrates how to set up a layout that listens for row click event
0 commit comments