Skip to content

@jsvision/ui / infoBox

Function: infoBox()

infoBox(host, message): Promise<void>

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

Show a modal message with a single OK button.

Parameters

host

ModalDialogHost

The modal host, including its translation service.

message

string

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

Returns

Promise<void>

Resolves once the user dismisses the box.

Example

ts
import { createApplication, infoBox } from '@jsvision/ui';
import { resolveCapabilities } from '@jsvision/core';

const caps = resolveCapabilities().profile;
const app = createApplication({ caps });

await infoBox(app, 'Search string not found.');