Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix useModalForm Example v2 #620

Merged
merged 5 commits into from
Jun 16, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add codesandbox embed code to doc
  • Loading branch information
salihozdemir committed Jun 16, 2021
commit 9f3f90c029cb6e01c00b9c25f5bc748f857215fc
Original file line number Diff line number Diff line change
Expand Up @@ -248,3 +248,12 @@ Don't forget to pass the record id to `show` to fetch the record data. This is n
| mutationResult | Result of the mutation triggered by submitting the form | [`UseMutationResult<`<br/>`{ data: TData },`<br/>`TError,`<br/>` { resource: string; values: TVariables; },`<br/>` unknown>`](https://react-query.tanstack.com/reference/useMutation) |
| setCloneId | `cloneId` setter | `Dispatch<SetStateAction<` `string` \| `undefined>>` |
| cloneId | Record id for clone action | `string` |

## Live Codesandbox Example

<iframe src="https://codesandbox.io/embed/refine-use-modal-form-example-qz7no?autoresize=1&fontsize=14&module=%2Fsrc%2Fpages%2Fposts%2Flist.tsx&theme=dark&view=preview"
style={{width: "100%", height:"80vh", border: "0px", borderRadius: "8px", overflow:"hidden"}}
title="refine-use-modal-form-example"
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
></iframe>