Skip to main content

ShowMessage

Description​

Shows the default M-Files message box with the specified content and appearance.

Syntax​

// shellUI points to instance of IShellUI
const result = await shellUI.ShowMessage(message);

Parameters​

NameOptionalityTypeDescription
messageRequiredstring | ShowMessageParamsMessage content to show.
String Type: The message to display. The message box contains single Ok button.
Object Type: - Defines the message box content and buttons.

Return type​

TypeDescription
Promise < ShowMessageReturnValue >Returns the result of the button clicked by the user.

Exceptions​

ArgumentError - When message is null or undefined.