Shows an input dialog.
Namespace: MindFusion.Common.UI
File: WindowHost.js
JavaScript Copy Code |
---|
function showInputDialog ([title, [message, [callback, [input, [property]]]]]) |
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 the first, and the specified property value of the input control will be passed as the second parameter to the callback function.
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 renders an input dialog with a callback method:
JavaScript Copy Code |
---|
// Show a input dialog. // This is the callback function of the input dialog. |