mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
initial commit
This commit is contained in:
23
ui/html-view/html-view-common.ts
Normal file
23
ui/html-view/html-view-common.ts
Normal file
@ -0,0 +1,23 @@
|
||||
import definition = require("ui/html-view");
|
||||
import dependencyObservable = require("ui/core/dependency-observable");
|
||||
import proxy = require("ui/core/proxy");
|
||||
import view = require("ui/core/view");
|
||||
|
||||
export class HtmlView extends view.View implements definition.HtmlView {
|
||||
public static htmlProperty = new dependencyObservable.Property(
|
||||
"html",
|
||||
"HtmlView",
|
||||
new proxy.PropertyMetadata(false, dependencyObservable.PropertyMetadataSettings.AffectsLayout)
|
||||
);
|
||||
|
||||
constructor(options?: definition.Options) {
|
||||
super(options);
|
||||
}
|
||||
|
||||
get html(): string {
|
||||
return this._getValue(HtmlView.htmlProperty);
|
||||
}
|
||||
set html(value: string) {
|
||||
this._setValue(HtmlView.htmlProperty, value);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user