Preview 2.0 is now in Public Beta!
Read the Announcement
Note: You are on the beta version of our docs. This is a work in progress and may contain broken links and pages.
WebView
Represents a standard WebView widget.

Summary

Constructors

constructor

Properties

android
canGoBack
canGoForward
disableZoom
ios
iosAllowInlineMediaPlayback
loadFinishedEvent
loadStartedEvent
src
152 properties inherited from View
Click to expand

Methods

goBack
goForward
on
reload
stopLoading
111 methods inherited from View
Click to expand

Constructors

constructor

new WebView(): WebView

Properties

android

android: any
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

canGoBack: boolean
Gets a value indicating whether the WebView can navigate back.

canGoForward

canGoForward: boolean
Gets a value indicating whether the WebView can navigate forward.

disableZoom

disableZoom: boolean
Disable scrolling in the WebView

ios

ios: any
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

iosAllowInlineMediaPlayback: boolean
Enables inline media playback on iOS. By default, webview forces iPhone into fullscreen media playback.

src

src: string
Gets or sets the url, local file path or HTML string.

loadFinishedEvent

Static
loadFinishedEvent: string
String value used when hooking to loadFinished event.

loadStartedEvent

Static
loadStartedEvent: string
String value used when hooking to loadStarted event.

Methods

goBack

goBack(): any
Navigates back.
Returns any

goForward

goForward(): any
Navigates forward.
Returns any

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

reload(): any
Reloads the current url.
Returns any

stopLoading

stopLoading(): void
Stops loading the current content (if any).
Returns void
Previous
VirtualArray