mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
make webview to inherit from ContainerView
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { WebView as WebViewDefinition, LoadEventData, NavigationType } from ".";
|
import { WebView as WebViewDefinition, LoadEventData, NavigationType } from ".";
|
||||||
import { View, Property, EventData, CSSType } from "../core/view";
|
import { ContainerView, Property, EventData, CSSType } from "../core/view";
|
||||||
import { File, knownFolders, path } from "../../file-system";
|
import { File, knownFolders, path } from "../../file-system";
|
||||||
|
|
||||||
export { File, knownFolders, path, NavigationType };
|
export { File, knownFolders, path, NavigationType };
|
||||||
@@ -8,7 +8,7 @@ export * from "../core/view";
|
|||||||
export const srcProperty = new Property<WebViewBase, string>({ name: "src" });
|
export const srcProperty = new Property<WebViewBase, string>({ name: "src" });
|
||||||
|
|
||||||
@CSSType("WebView")
|
@CSSType("WebView")
|
||||||
export abstract class WebViewBase extends View implements WebViewDefinition {
|
export abstract class WebViewBase extends ContainerView implements WebViewDefinition {
|
||||||
public static loadStartedEvent = "loadStarted";
|
public static loadStartedEvent = "loadStarted";
|
||||||
public static loadFinishedEvent = "loadFinished";
|
public static loadFinishedEvent = "loadFinished";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user