Initializes a new instance of the InfoDialog class.
Namespace: MindFusion.Common.UI
File: InfoDialog.js
JavaScript
![]() |
---|
function InfoDialog ([title, [message, [parent]]]) |
String. The text to display as a dialog title.
String. The message to display as the dialog text.
HTMLElement. The Dom element to append the dialog to.If the parameter is not specified, the dialog will be appended to document.body.
The following code creates a new instance of the InfoDialog class:
JavaScript
![]() |
---|
var infoDialog = new ui.InfoDialog("Elapsed Time", "You Have Played This Game for 2 Hours!", document.getElementById("content")); |