O3 Framework / showModal
showModal(
modalName,props,onClose): () =>void
Defined in: packages/framework/esm-styleguide/src/modals/index.tsx:200
Shows a modal dialog.
The modal must have been registered by name. This should be done in the routes.json file of the
app that defines the modal. Note that both the <ModalHeader> and <ModalBody> should be at the
top level of the modal component (wrapped in a React.Fragment), or else the content of the modal
body might not vertical-scroll properly.
string
The name of the modal to show.
ModalProps = {}
The optional props to provide to the modal.
() => void
The optional callback to call when the modal is closed.
The dispose function to force closing the modal dialog.
():
void
void