You are reading docs for v1.3.1, click here for the latest version.
WebView

This is an overview of the most common usage of WebView. For more information about the available properties, methods, or events, head over to the complete API documentation for WebView.

<WebView> is a UI component that lets you show web content in your app. You can pull and show content from a URL or a local HTML file, or you can render static HTML content.

See also: HtmlView.


<WebView src="http://nativescript-vue.org/" />

<WebView src="~/html" />

<WebView src="<div><h1>Some static HTML</h1></div>" />

Props

NameTypeDescription
srcStringGets or sets the displayed web content.
Valid values: an absolute URL, the path to a local HTML file, or static HTML.

Events

NameDescription
loadStartedEmitted when the page has started loading in the <WebView>.
loadFinishedEmitted when the page has finished loading in the <WebView>.

Native component

AndroidiOS
android.webkit.WebViewWKWebView
Contributors