openModal

abstract fun <T : ModalResult> openModal(modal: Modal<T>)

Opens a new Modal window on top of the Screen. A modal window blocks access to all Components on this Screen and also stops component events until the modal window is closed. A Modal returns an arbitrary ModalResult. If you don't want to return anything from a Modal use EmptyModalResult.