mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Fix WebView
This commit is contained in:
@ -11,20 +11,19 @@
|
||||
<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"/>
|
||||
<ListView class="s0" row="3" col="1" items="ListView"/>
|
||||
<HtmlView class="s0" row="3" col="2" html="
|
||||
<h1>HtmlView</h1>"/>
|
||||
<WebView class="s0" row="4" col="0" src="~/ui-tests-app/web-view/test.html"/>
|
||||
<SegmentedBar class="s0" row="4" col="1">
|
||||
<SegmentedBar.items>
|
||||
<SegmentedBarItem title="SB 1" />
|
||||
<SegmentedBarItem title="SB 2" />
|
||||
</SegmentedBar.items>
|
||||
</SegmentedBar>
|
||||
<DatePicker class="s0" row="4" col="2" year="1980" month="2" day="9"/>
|
||||
<TimePicker class="s0" row="5" col="0" hour="5" minute="30"/>
|
||||
<ListPicker class="s0" row="5" col="1" items="123"/>
|
||||
<ScrollView class="s0" row="5" col="2">
|
||||
<Label text="ScrollView" autocorrect="false" width="160" height="160" style.backgroundColor="gray"/>
|
||||
</ScrollView>
|
||||
</GridLayout>
|
||||
</Page>
|
||||
<HtmlView class="s0" row="3" col="2" html="<h1>HtmlView</h1>"/>
|
||||
<WebView class="s0" row="4" col="0" src="~/ui-tests-app/web-view/test.html"/>
|
||||
<SegmentedBar class="s0" row="4" col="1">
|
||||
<SegmentedBar.items>
|
||||
<SegmentedBarItem title="SB 1" />
|
||||
<SegmentedBarItem title="SB 2" />
|
||||
</SegmentedBar.items>
|
||||
</SegmentedBar>
|
||||
<DatePicker class="s0" row="4" col="2" year="1980" month="2" day="9"/>
|
||||
<TimePicker class="s0" row="5" col="0" hour="5" minute="30"/>
|
||||
<ListPicker class="s0" row="5" col="1" items="123"/>
|
||||
<ScrollView class="s0" row="5" col="2">
|
||||
<Label text="ScrollView" autocorrect="false" width="160" height="160" style.backgroundColor="gray"/>
|
||||
</ScrollView>
|
||||
</GridLayout>
|
||||
</Page>
|
@ -6,7 +6,7 @@ import { File, knownFolders, path } from "file-system";
|
||||
export { File, knownFolders, path };
|
||||
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 {
|
||||
public static loadStartedEvent = "loadStarted";
|
||||
|
Reference in New Issue
Block a user