Search
Dialogs Class
See Also
 






Contains static methods for different user dialogs.

Namespace: MindFusion.Common.UI
File: Dialogs.js

 Syntax

JavaScript  Copy Code

// class
Dialogs.prototype = {}

 Example

The following code creates a confim dialog:

JavaScript  Copy Code

// show the dialog
ui.Dialogs.showConfirmDialog("Elapsed Time" "Do you want to continue?", warnUser, document.getElementById("content"), "standard");


function warnUser(result, elapsedTime)
{
 if (result == ui.ModalResult.Cancel) return;

  
 alert("You have played this game for " + elapsedTime + "minutes!);
 
}

 Inheritance Hierarchy

MindFusion.Common.UI.Dialogs

 See Also