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
Copy file name to clipboardExpand all lines: docs/WithRecord.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,23 +32,26 @@ As soon as there is a record available, react-admin puts it in a `RecordContext`
32
32
- in descendants of the `<Show>` and `<ShowBase>` component
33
33
- in descendants of the `<Edit>` and `<EditBase>` component
34
34
- in descendants of the `<Create>` and `<CreateBase>` component
35
+
- in descendants of the `<DataTable>` component
35
36
- in descendants of the `<Datagrid>` component
36
37
- in descendants of the `<SimpleList>` component
37
38
- in descendants of the `<ReferenceField>` component
38
39
39
-
## Using in a Datagrid
40
+
## Using in a DataTable
40
41
41
-
When using `<WithRecord>` in a [`<Datagrid>`](./Datagrid.md), you must specify the `label` prop to let react-admin know which field to display in the column header.
42
+
When using `<WithRecord>` in a [`<DataTable>`](./DataTable.md), you must specify the `label` prop to let react-admin know which field to display in the column header.
Copy file name to clipboardExpand all lines: docs/useListContext.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ The `ListContext` is available to descendants of:
15
15
-`<ReferenceArrayField>`,
16
16
-`<ReferenceManyField>`
17
17
18
-
All descendant components can therefore access the list context, using the `useListContext` hook. As a matter of fact, react-admin's `<Datagrid>`, `<FilterForm>`, and `<Pagination>` components all use the `useListContext` hook.
18
+
All descendant components can therefore access the list context, using the `useListContext` hook. As a matter of fact, react-admin's `<DataTable>`, `<FilterForm>`, and `<Pagination>` components all use the `useListContext` hook.
@@ -208,4 +208,4 @@ You can find many usage examples of `useListContext` in the documentation, inclu
208
208
-[Building a Custom Pagination Control](./ListTutorial.md#building-a-custom-pagination)
209
209
-[Building a Custom Iterator](./ListTutorial.md#building-a-custom-iterator)
210
210
211
-
**Tip**: [`<ReferenceManyField>`](./ReferenceManyField.md), as well as other relationship-related components, also implement a `ListContext`. That means you can use a `<Datagrid>` of a `<Pagination>` inside these components!
211
+
**Tip**: [`<ReferenceManyField>`](./ReferenceManyField.md), as well as other relationship-related components, also implement a `ListContext`. That means you can use a `<DataTable>` of a `<Pagination>` inside these components!
Copy file name to clipboardExpand all lines: docs/useListController.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ title: "useListController"
11
11
12
12
`useListController` reads the list parameters from the URL, calls `dataProvider.getList()`, prepares callbacks for modifying the pagination, filters, sort and selection, and returns them together with the data. Its return value matches the [`ListContext`](./useListContext.md) shape.
13
13
14
-
`useListController` is used internally by [`<List>`](./List.md) and [`<ListBase>`](./ListBase.md). If your list view uses react-admin components like [`<Datagrid>`](./Datagrid.md), prefer [`<ListBase>`](./ListBase.md) to `useListController` as it takes care of creating a `<ListContext>`.
14
+
`useListController` is used internally by [`<List>`](./List.md) and [`<ListBase>`](./ListBase.md). If your list view uses react-admin components like [`<DataTable>`](./DataTable.md), prefer [`<ListBase>`](./ListBase.md) to `useListController` as it takes care of creating a `<ListContext>`.
Copy file name to clipboardExpand all lines: docs/useRecordContext.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ title: "useRecordContext"
5
5
6
6
# `useRecordContext`
7
7
8
-
`useRecordContext` grabs the current record. It's available anywhere react-admin manipulates a record, e.g. in a Show page, in a Datagrid row, or in a Reference Field.
8
+
`useRecordContext` grabs the current record. It's available anywhere react-admin manipulates a record, e.g. in a Show page, in a DataTable row, or in a Reference Field.
Copy file name to clipboardExpand all lines: docs/useUnselect.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ title: "useUnselect"
5
5
6
6
# `useUnselect`
7
7
8
-
This hook returns a function that unselects lines in the current `<Datagrid>` that match an array of ids. Pass the name of the resource to the hook as argument.
8
+
This hook returns a function that unselects lines in the current `<DataTable>` that match an array of ids. Pass the name of the resource to the hook as argument.
0 commit comments