Skip to content

Latest commit

 

History

History
91 lines (62 loc) · 2.11 KB

html-view.md

File metadata and controls

91 lines (62 loc) · 2.11 KB
title HtmlView
description UI component for rendering simple HTML content.
contributors
rigor789
Ombuweb

<HtmlView> is a UI component for rendering simple static HTML content.

::: tip For additional features and improved performance, consider using an alternative implementation like the @nativescript-community/ui-label from the community. :::

See also: WebView.

::: code-group <<< @/../examples/typescript/src/ui/HtmlView/template.xml#example [XML] <<< @/../examples/typescript/src/ui/HtmlView/template.ts#example [TypeScript] :::

::: code-group <<< @/../examples/angular/src/ui/HtmlView/component.html#example [HTML] <<< @/../examples/angular/src/ui/HtmlView/component.ts#example [TypeScript] :::

<<< @/../examples/react/src/components/ui/htmlview.tsx#example

<<< @/../examples/solid/src/ui/htmlview.tsx#example

<<< @/../examples/svelte/app/components/ui/HtmlView.svelte#example

<<< @/../examples/vue/src/ui/HtmlView/component.vue#example

Props

html

html: string

The HTML content to be shown.

selectable

selectable: boolean

Gets or sets a value indicating whether HtmlView content is selectable.

...Inherited

For additional inherited properties, refer to the API Reference.

Native component