WebView.connectRunAsModal
gulong connectRunAsModal(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : webkit.web_view.WebView)))
&& Parameters!T.length < 2)Connect to RunAsModal signal.
Emitted after #WebKitWebView::ready-to-show on the newly created #WebKitWebView when JavaScript code calls
<function>window.showModalDialog</function>. The purpose ofthis signal is to allow the client application to prepare the new view to behave as modal. Once the signal is emitted a new main loop will be run to block user interaction in the parent #WebKitWebView until the new dialog is closed.
Parameters
callback | signal callback delegate or function to connect void callback(webkit.web_view.WebView webView) webView the instance the signal is connected to (optional) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID