Skip to main content

ShowMessage

Description​

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

Syntax​

// The dashboard variable here points to instance of IDashboard
const result = await dashboard.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. See the M-Files UI Extensibility
framework User's Guide for more details.

Return type​

TypeDescription
Promise < ShowMessageReturnValue >Structure indication which button was clicked.