ScriptDialog.promptSetText

void promptSetText(string text)

Set the text entered by the user in the dialog.

This method is used for webkit.types.ScriptDialogType.Prompt dialogs when #WebKitWebView::script-dialog signal is emitted to set the text entered by the user. The default implementation of #WebKitWebView::script-dialog signal sets the text of the entry form when OK button is clicked, otherwise null is set. It's an error to use this method with a #WebKitScriptDialog that is not of type webkit.types.ScriptDialogType.Prompt.

Parameters

textthe text to set