Classes
WebView
WebView
Represents a standard WebView widget.
Summary
Constructors
Properties
- android
- canGoBack
- canGoForward
- disableZoom
- ios
- iosAllowInlineMediaPlayback
- loadFinishedEvent
- loadStartedEvent
- src
152 properties inherited from View
Click to expand
Constructors
Properties
android
Gets the native [android widget](http://developer.android.com/reference/android/webkit/WebView.html) that represents the user interface for this component. Valid only when running on Android OS.
canGoBack
Gets a value indicating whether the WebView can navigate back.
canGoForward
Gets a value indicating whether the WebView can navigate forward.
disableZoom
Disable scrolling in the WebView
ios
Gets the native [WKWebView](https://developer.apple.com/documentation/webkit/wkwebview/) that represents the user interface for this component. Valid only when running on iOS.
iosAllowInlineMediaPlayback
Enables inline media playback on iOS.
By default, webview forces iPhone into fullscreen media playback.
src
Gets or sets the url, local file path or HTML string.
loadFinishedEvent
Static
String value used when hooking to loadFinished event.
loadStartedEvent
Static
String value used when hooking to loadStarted event.
Methods
goBack
goForward
on
on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void
A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
Parameter | Default | Description |
eventNames |
| string String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). |
callback |
| (data: EventData) => void Callback function which will be executed when event is raised. |
thisArg |
| any An optional parameter which will be used as `this` context for callback execution. |
Returns void
on(event: "loadFinished", callback: (args: LoadEventData) => void, thisArg?: any): void
Raised when a loadFinished event occurs.
Parameter | Default | Description |
event |
| "loadFinished" |
callback |
| (args: LoadEventData) => void |
thisArg |
| any |
Returns void
on(event: "loadStarted", callback: (args: LoadEventData) => void, thisArg?: any): void
Raised when a loadStarted event occurs.
Parameter | Default | Description |
event |
| "loadStarted" |
callback |
| (args: LoadEventData) => void |
thisArg |
| any |
Returns void
reload
stopLoading
Stops loading the current content (if any).
Returns void
- Previous
- VirtualArray
- Next
- WrapLayout