mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
@@ -10,10 +10,6 @@ export class HtmlView extends view.View implements definition.HtmlView {
|
||||
new proxy.PropertyMetadata(false, dependencyObservable.PropertyMetadataSettings.AffectsLayout)
|
||||
);
|
||||
|
||||
constructor(options?: definition.Options) {
|
||||
super(options);
|
||||
}
|
||||
|
||||
get html(): string {
|
||||
return this._getValue(HtmlView.htmlProperty);
|
||||
}
|
||||
|
||||
14
ui/html-view/html-view.d.ts
vendored
14
ui/html-view/html-view.d.ts
vendored
@@ -17,8 +17,6 @@ declare module "ui/html-view" {
|
||||
*/
|
||||
public static htmlProperty: dependencyObservable.Property;
|
||||
|
||||
constructor(options?: Options);
|
||||
|
||||
/**
|
||||
* Gets the native [android widget](http://developer.android.com/reference/android/widget/TextView.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
@@ -34,14 +32,4 @@ declare module "ui/html-view" {
|
||||
*/
|
||||
html: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides a set of most common options for creating a HtmlView.
|
||||
*/
|
||||
export interface Options extends view.Options {
|
||||
/**
|
||||
* Gets or sets the html content of a HtmlView.
|
||||
*/
|
||||
html?: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
import common = require("./html-view-common");
|
||||
import definition = require("ui/html-view");
|
||||
import dependencyObservable = require("ui/core/dependency-observable");
|
||||
import proxy = require("ui/core/proxy");
|
||||
import * as utils from "utils/utils";
|
||||
@@ -30,8 +29,8 @@ global.moduleMerge(common, exports);
|
||||
export class HtmlView extends common.HtmlView {
|
||||
private _ios: UITextView;
|
||||
|
||||
constructor(options?: definition.Options) {
|
||||
super(options);
|
||||
constructor() {
|
||||
super();
|
||||
this._ios = UITextView.new();
|
||||
|
||||
this._ios.scrollEnabled = false;
|
||||
|
||||
Reference in New Issue
Block a user