mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Split get/set native to getDefault setNative
This commit is contained in:
@@ -48,10 +48,10 @@ export class HtmlView extends HtmlViewBase {
|
||||
}
|
||||
}
|
||||
|
||||
get [htmlProperty.native](): string {
|
||||
[htmlProperty.getDefault](): string {
|
||||
return "";
|
||||
}
|
||||
set [htmlProperty.native](value: string) {
|
||||
[htmlProperty.setNative](value: string) {
|
||||
const htmlString = NSString.stringWithString(value + "");
|
||||
const nsData = htmlString.dataUsingEncoding(NSUnicodeStringEncoding);
|
||||
this._ios.attributedText = NSAttributedString.alloc().initWithDataOptionsDocumentAttributesError(nsData, <any>{ [NSDocumentTypeDocumentAttribute]: NSHTMLTextDocumentType }, null);
|
||||
|
||||
Reference in New Issue
Block a user