webView(_:runOpenPanelForFileButtonWith:)
Displays an open panel for a file input control.
Declaration
optional func webView(_ sender: WebView!, runOpenPanelForFileButtonWith resultListener: (any WebOpenPanelResultListener)!)Parameters
- sender:
The web view that sent the message.
- resultListener:
See the Webopenpanelresultlistener protocol for how to set these values.
Discussion
This method uses a listener object to set the results of the open panel, instead of returning the value directly. This approach allows delegates to implement the open panel as a modal dialog. No action is taken if you do not implement this method.
See Also
Opening Panels
webView(_:runJavaScriptAlertPanelWithMessage:initiatedBy:)webView(_:runJavaScriptConfirmPanelWithMessage:initiatedBy:)webView(_:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedBy:)webView(_:runOpenPanelForFileButtonWith:allowMultipleFiles:)webView(_:runBeforeUnloadConfirmPanelWithMessage:initiatedBy:)