Initializes a new instance of the InputDialog class.
Namespace: MindFusion.Common.UI
File: InputDialog.js
JavaScript Copy Code |
---|
function InputDialog ([title, [message, [parent, [input, [property]]]]]) |
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.
HTMLElement. The input control to show in the dialog. If the parameter is not specified, an empty HTML text input will be displayed.
String. The name of the property of the input control, whose value will be passed as the second argument to the callback function.If the parameter is not specified, the value property will be used.
The following code creates a new instance of the InputDialog class:
JavaScript Copy Code |
---|
// create a custom input for the input dialog var option = document.createElement("option"); option = document.createElement("option"); // show the dialog
|