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 component displayed as the first row when a user clicks on the Create button. It's usually a form built with [`<RowForm>`](#rowform), with the same number of children as the `<EditableDatagrid>` has children.
130
136
131
137
```tsx
132
138
exportconst ArtistList = () => (
133
139
<ListhasCreateempty={false}>
134
-
<EditableDatagrid
140
+
<EditableDatagrid
135
141
editForm={<ArtistForm />}
136
142
createForm={<ArtistForm />}
137
143
>
@@ -205,6 +211,12 @@ Use the `mutationMode` prop to specify the [mutation mode](./Edit.html#mutationm
You can use `<EditableDatagrid>` inside a `<ReferenceManyField>`. The only difference with its usage in a `<List>` is that you have to initialize the foreign key in the creation form using the `defaultValues` prop:
323
342
324
343
{% raw %}
@@ -384,6 +403,12 @@ In these examples, the same form component is used in `createForm` and `editForm
You can provide your own side effects in response to successful or failed save and delete actions, by passing functions to the `onSuccess` or `onError` inside the `mutationOptions` prop:
0 commit comments