Skip to content

@jsvision/ui / ModalDialogHost

Interface: ModalDialogHost

Defined in: ui/src/dialog/message-box.ts:22

The minimal host a modal helper needs: an event loop to run the modal and a desktop to mount it into. An Application from createApplication() satisfies this directly — pass the app itself, or { loop: app.loop, desktop: app.desktop }.

Properties

desktop

desktop: Pick<Desktop, "addWindow" | "removeWindow" | "bounds">

Defined in: ui/src/dialog/message-box.ts:26

The desktop the modal mounts into (and whose extent bounds it).


loop

loop: Pick<EventLoop, "execView">

Defined in: ui/src/dialog/message-box.ts:24

Runs a view modally, resolving to the command that closed it.