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/ShowDialog.md
-113Lines changed: 0 additions & 113 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -344,116 +344,3 @@ const CompanyShow = () => (
344
344
```
345
345
346
346
Check [the `<ShowInDialogButton>` component](./ShowInDialogButton.md) for more details.
347
-
348
-
## Standalone Usage
349
-
350
-
`<ShowDialog>` also offer the ability to work standalone, without using the Router's location.
351
-
352
-
To allow for standalone usage, they require the following props:
353
-
354
-
-`isOpen`: a boolean holding the open/close state
355
-
-`open`: a function that will be called when a component needs to open the dialog (e.g. a button)
356
-
-`close`: a function that will be called when a component needs to close the dialog (e.g. the dialog's close button)
357
-
358
-
**Tip:** These props are exactly the same as what is stored inside a `FormDialogContext`. This means that you can also rather provide your own `FormDialogContext` with these values, and render your dialog component inside it, to activate standalone mode.
359
-
360
-
Below is an example of an `<Show>` page, including a 'create a new customer' button, that opens a fully controlled `<ShowDialog>`.
0 commit comments