Shows a confirm dialog, which displays a message and OK and Cancel buttons.
Namespace: MindFusion.Common.UI
File: Dialogs.js
JavaScript Copy Code |
---|
function showConfirmDialog ([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.The dialog's modalResult will be passed as a parameter to the callback function.
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 a confim dialog:
JavaScript Copy Code |
---|
// show the dialog
|