Shows an info dialog, which displays a message and an OK button.
Namespace: MindFusion.Common.UI
File: Dialogs.js
JavaScript Copy Code |
---|
function showInfoDialog ([title, [message, [callback, [parentElement, [theme]]]]]) |
String. The text to display as a dialog title.
String. The message to display as the dialog text.
function. The callback function to invoke when the dialog is closed.
HTMLElement. The Dom element to append the dialog to.If the parameter is not specified, the dialog will be appended to document.body.
String. The theme of the dialog.
The following code creates an info dialog:
JavaScript Copy Code |
---|
var infoMessage; = ""; function informUser(elapsedTime) |