WebView
Displays a native WKWebView and optionally binds it to a WebPage.
<WebView ... />
Topics
Properties
| Name | Type | Required | Description |
|---|---|---|---|
page |
table | optional | Observable ui.webpage state object. |
url |
string | optional | Initial URL when no page object is supplied. |
allowsMagnification |
boolean | optional | Pinch to magnify (macOS). |
contentBackground |
string | optional | hidden shows the window's background behind the page. |
Example
<WebView page="page" />
Platform notes
- AppKit and UIKit WKWebView.
Source: lua/ui/webpage.lua:263 (ns.WebView)