Skip to content

@serenity-is/corelib / warning

Variable: warning()

const warning: (message, options?) => Partial<Dialog> = warningDialog

Defined in: src/compat/dialogs-compat.ts:36

Legacy Q.warning alias.

Displays a warning dialog with a single OK button.

Parameters

message

RenderableContent

Text or renderable content shown in the dialog body.

options?

MessageDialogOptions

Additional MessageDialogOptions.

Returns

Partial<Dialog>

A Dialog handle (partial when falling back to the native alert()).

Example

warningDialog("Something is odd!");

Deprecated

Use warningDialog instead.

See

warningDialog