@jsvision/files / ExecHost
Interface: ExecHost
Defined in: files/src/dialog/error-dialog.ts:15
The minimal host a modal needs: an event loop that can run a view modally and a desktop to mount it into. The result of createApplication satisfies this. Because running a view modally does not mount it, callers add it to the desktop, run it, then remove it in a finally.
Properties
desktop
desktop:
Pick<Desktop,"addWindow"|"removeWindow">
Defined in: files/src/dialog/error-dialog.ts:19
The desktop the modal is mounted into (added before, removed after).
loop
loop:
Pick<EventLoop,"execView">
Defined in: files/src/dialog/error-dialog.ts:17
Runs a view modally, resolving to the command that closed it.