Skip to content

@jsvision/ui / infoBox

Function: infoBox()

infoBox(host, message): Promise<void>

Defined in: ui/src/editor/dialogs.ts:167

Show a modal message with a single OK button.

Parameters

host

ModalDialogHost

The modal host ({ loop: app.loop, desktop: app.desktop }).

message

string

The message to display; the box sizes itself to fit.

Returns

Promise<void>

Resolves once the user dismisses the box.

Example

ts
await infoBox({ loop: app.loop, desktop: app.desktop }, 'Search string not found.');