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
|`data`| Required |`object`|| The data used to update the record |
1367
-
|`mutationMode`| Optional |`string`|`undoable`| Mutation mode (`'undoable'`, `'pessimistic'` or `'optimistic'`) |
1368
-
|`confirmTitle`| Optional |`ReactNode`|`ra.message.bulk_update_title`| The title of the confirmation dialog when `mutationMode` is not `undoable`|
1369
-
|`confirmContent`| Optional |`ReactNode`|`ra.message.bulk_update_content`| The content of the confirmation dialog when `mutationMode` is not `undoable`|
1370
-
|`mutationOptions`| Optional |`Object`|| The react-query mutation options |
|`data`| Required |`Object`|| The data used to update the record |
1369
+
|`confirmTitle`| Optional |`ReactNode`|`ra.message.bulk_update_title`| The title of the confirmation dialog when `mutationMode` is not `undoable`|
1370
+
|`confirmContent`| Optional |`ReactNode`|`ra.message.bulk_update_content`| The content of the confirmation dialog when `mutationMode` is not `undoable`|
1371
+
|`contentTranslateOptions`| Optional |`Object`| {} | Custom id, name and record representation to be used in the confirm dialog's content |
1372
+
|`mutationMode`| Optional |`string`|`undoable`| Mutation mode (`'undoable'`, `'pessimistic'` or `'optimistic'`) |
1373
+
|`mutationOptions`| Optional |`Object`|| The react-query mutation options |
1374
+
|`titleTranslateOptions`| Optional |`Object`| {} | Custom id, name and record representation to be used in the confirm dialog's title |
1371
1375
1372
1376
`<UpdateButton>` also accepts the [Button props](./Buttons.md#button).
|`confirmColor`| Optional |`string`| 'primary' | Color of the confirm button |
72
72
|`ConfirmIcon`| Optional |`Component`|`CheckCircleIcon`| Icon component of the confirm button |
73
73
|`CancelIcon`| Optional |`Component`|`ErrorOutlineIcon`| Icon component of the cancel button |
74
-
|`translate Options`| Optional |`{ id?: string, name?: string }`| {} | Custom id and name to be used in the dialog title |
74
+
|`title Translate Options`| Optional |`{ id?: string, name?: string }`| {} | Custom id and name to be used in the dialog title |
75
+
|`content Translate Options`| Optional |`{ id?: string, name?: string }`| {} | Custom id and name to be used in the dialog content |
75
76
|`sx`| Optional |`SxProps`| '' | Material UI shortcut for defining custom styles with access to the theme |
76
77
77
-
Text props such as `title`, `content`, `cancel`, `confirm`and `translateOptions` are translatable. You can pass translation keys in these props. Note: `content` is only translatable when value is `string`, otherwise it renders the content as a `ReactNode`.
78
+
Text props such as `title`, `content`, `cancel`and `confirm` are translatable. You can pass translation keys in these props. Note: `content` is only translatable when value is `string`, otherwise it renders the content as a `ReactNode`.
0 commit comments