SFU.showAlert()
- Last UpdatedJun 25, 2024
- 1 minute read
Use showAlert() method to show a notification to the user.
Syntax
SFU.showAlert(title, message [, callbackHandlerFn]);
Parameters
|
Parameter |
Description |
|---|---|
|
title |
Title of the message |
|
message |
Message to display to the user. |
|
callbackHandlerFn |
A function that is triggered after the alert message is closed. |
Note: You can include HTML content in the title and message.
Return Value
None.
Example
// Show the welcome message to the user.
SFU.showAlert("Hi", "Welcome to AVEVA Work Tasks",
function()
{
//enter code to perform actions after the alert is closed.
});