HtmlView

Using a HtmlView requires the html-view module.

import * as htmlViewModule from "tns-core-modules/ui/html-view";

Declaring a HtmlView.

 <Page>
      <HtmlView html="{{ htmlString }}" />
 </Page>

Creating a HtmlView

var htmlView = new htmlViewModule.HtmlView();

Using HtmlView

htmlView.html = '<span><font color="#ff0000">Test</font></span>';

Stay connected with NativeScript

(expect a newsletter every 4-8 weeks)

NativeScript
NativeScript is licensed under the Apache 2.0 license .
© Progress Software Corporation. All Rights Reserved.