Skip to content

Commit a61978b

Browse files
committed
Updated WebView documentation for clarity.
1 parent 7a188d0 commit a61978b

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

docs/docs/components/webview.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,26 @@ next: apis/alert
99

1010
This component displays HTML contents in an embedded browser control.
1111

12+
To limit the functionality of the browser control, specify one or more sandbox options. For detailed definitions of sandbox flags, refer to the [HTML documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe).
13+
14+
15+
## Constants
16+
``` javascript
17+
enum WebViewSandboxMode {
18+
None = 0,
19+
AllowForms = 1 << 0,
20+
AllowModals = 1 << 1,
21+
AllowOrientationLock = 1 << 2,
22+
AllowPointerLock = 1 << 3,
23+
AllowPopups = 1 << 4,
24+
AllowPopupsToEscapeSandbox = 1 << 5,
25+
AllowPresentation = 1 << 6,
26+
AllowSameOrigin = 1 << 7,
27+
AllowScripts = 1 << 8,
28+
AllowTopNavigation = 1 << 9
29+
}
30+
```
31+
1232
## Classes
1333
``` javascript
1434
interface WebViewNavigationState {

0 commit comments

Comments
 (0)