mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
3
apps/ui-tests-app/web-view/test.css
Normal file
3
apps/ui-tests-app/web-view/test.css
Normal file
@@ -0,0 +1,3 @@
|
||||
body {
|
||||
background-color: green;
|
||||
}
|
||||
11
apps/ui-tests-app/web-view/test.html
Normal file
11
apps/ui-tests-app/web-view/test.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>MyTitle</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="test.css">
|
||||
</head>
|
||||
<body>
|
||||
<span style="color:red">Test</span>
|
||||
</body>
|
||||
</html>
|
||||
@@ -2,7 +2,7 @@
|
||||
<ListView loaded="loaded">
|
||||
<ListView.itemTemplate>
|
||||
<WebView loaded="onLoaded" loadStarted="onLoadStarted" loadFinished="onLoadFinished" unloaded="onUnloaded"
|
||||
url="http://www.bbc.com/" minHeight="250" />
|
||||
src="http://www.bbc.com/" minHeight="250" />
|
||||
</ListView.itemTemplate>
|
||||
</ListView>
|
||||
</Page>
|
||||
6
apps/ui-tests-app/web-view/webviewlocalfile.xml
Normal file
6
apps/ui-tests-app/web-view/webviewlocalfile.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<Page>
|
||||
<GridLayout>
|
||||
<WebView src="~/test.html" />
|
||||
</GridLayout>
|
||||
</Page>
|
||||
|
||||
Reference in New Issue
Block a user