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/Create.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,7 @@ You can customize the `<Create>` component using the following props:
58
58
*[`actions`](#actions): override the actions toolbar with a custom component
59
59
*[`aside`](#aside): component to render aside to the main content
60
60
*`children`: the components that renders the form
61
+
*`render`: Alternative to children. A function that renders the form, receive the create context as its argument
61
62
*`className`: passed to the root component
62
63
*[`component`](#component): override the root component
63
64
*[`disableAuthentication`](#disableauthentication): disable the authentication check
@@ -70,6 +71,36 @@ You can customize the `<Create>` component using the following props:
70
71
*[`title`](#title): override the page title
71
72
*[`transform`](#transform): transform the form data before calling `dataProvider.create()`
72
73
74
+
## `render`
75
+
76
+
Alternatively to children you can pass a render prop to `<Create>`. The render prop will receive the create context as its argument, allowing to inline the render logic for the create form.
77
+
When receiving a render prop the `<Create>` component will ignore the children property.
Copy file name to clipboardExpand all lines: docs/Edit.md
+25-11Lines changed: 25 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,25 +83,39 @@ You can customize the `<Edit>` component using the following props:
83
83
84
84
## `render`
85
85
86
-
Alternatively to children you can pass a render prop to `<List>`. The render prop will receive the list context as its argument, allowing to inline the render logic for both the list content.
87
-
When receiving a render prop the `<List>` component will ignore the children property.
86
+
Alternatively to children you can pass a render prop to `<Edit>`. The render prop will receive the edit context as its argument, allowing to inline the render logic for the edit form.
87
+
When receiving a render prop the `<Edit>` component will ignore the children property.
Copy file name to clipboardExpand all lines: docs/List.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
@@ -82,7 +82,7 @@ Additional props are passed down to the root component (a MUI `<Card>` by defaul
82
82
83
83
## `render`
84
84
85
-
Alternatively to children you can pass a render prop to `<List>`. The render prop will receive the list context as its argument, allowing to inline the render logic for both the list content.
85
+
Alternatively to children you can pass a render prop to `<List>`. The render prop will receive the list context as its argument, allowing to inline the render logic for the list content.
86
86
When receiving a render prop the `<List>` component will ignore the children property.
0 commit comments