UI Modal Service
Modals have similar characteristics to that of Dialogs, but are often larger, and only allow for a single instance to be viewable at once. They also tend to be centered, and not draggable. They're commonly used when:
- We need to grab the user's attention
 - We need user input
 - We need to show additional information
 
If you're curious about the DOs and DON'Ts of dialogs and modals, check out this article: "Best Practices for Modals / Overlays / Dialog Windows"
Interface​
For a more detailed look on the options and return values each of these methods
is expected to support, check out it's interface in @ohif/core
| API Member | Description | 
|---|---|
hide() | Hides the open modal | 
show() | Shows the provided content in a modal | 
customComponent() | Overrides the default Modal component | 
Implementations​
| Implementation | Consumer | 
|---|---|
| Modal Provider* | Modal.jsx | 
| customComponent | user extensions via setServiceImplementation({customComponent: Modal}) | 
Custom Component​
If you would like to customize the modal component that OHIF uses, you can register your own
component with the customComponent property.
setServiceImplementation({customComponent: Modal})
3rd Party implementers may be added to this table via pull requests.