Fix WebView

This commit is contained in:
Rossen Hristov
2016-12-27 13:53:12 +02:00
parent 0cd1ff9e05
commit 9d351221fb
2 changed files with 17 additions and 18 deletions

View File

@ -11,8 +11,7 @@
<ActivityIndicator class="s0" row="2" col="2" busy="false"/> <ActivityIndicator class="s0" row="2" col="2" busy="false"/>
<Image class="s0" row="3" col="0" src="~/ui-tests-app/image-view/gravatar.png" stretch="fill"/> <Image class="s0" row="3" col="0" src="~/ui-tests-app/image-view/gravatar.png" stretch="fill"/>
<ListView class="s0" row="3" col="1" items="ListView"/> <ListView class="s0" row="3" col="1" items="ListView"/>
<HtmlView class="s0" row="3" col="2" html=" <HtmlView class="s0" row="3" col="2" html="<h1>HtmlView</h1>"/>
<h1>HtmlView</h1>"/>
<WebView class="s0" row="4" col="0" src="~/ui-tests-app/web-view/test.html"/> <WebView class="s0" row="4" col="0" src="~/ui-tests-app/web-view/test.html"/>
<SegmentedBar class="s0" row="4" col="1"> <SegmentedBar class="s0" row="4" col="1">
<SegmentedBar.items> <SegmentedBar.items>
@ -27,4 +26,4 @@
<Label text="ScrollView" autocorrect="false" width="160" height="160" style.backgroundColor="gray"/> <Label text="ScrollView" autocorrect="false" width="160" height="160" style.backgroundColor="gray"/>
</ScrollView> </ScrollView>
</GridLayout> </GridLayout>
</Page> </Page>

View File

@ -6,7 +6,7 @@ import { File, knownFolders, path } from "file-system";
export { File, knownFolders, path }; export { File, knownFolders, path };
export * from "ui/core/view"; export * from "ui/core/view";
export const srcProperty = new Property<WebViewBase, string>({ name: "url" }); export const srcProperty = new Property<WebViewBase, string>({ name: "src" });
export abstract class WebViewBase extends View implements WebViewDefinition { export abstract class WebViewBase extends View implements WebViewDefinition {
public static loadStartedEvent = "loadStarted"; public static loadStartedEvent = "loadStarted";