UNPKG

1.15 kBTypeScriptView Raw
1import { View } from '../core/view';
2import { Property } from '../core/properties';
3
4/**
5 * Represents a view with html content. Use this component instead WebView when you want to show just static HTML content.
6 * [iOS support](https://developer.apple.com/documentation/foundation/nsattributedstring/1524613-initwithdata)
7 * [android support](http://developer.android.com/reference/android/text/Html.html)
8 */
9export class HtmlView extends View {
10 /**
11 * 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.
12 */
13 android: any /* android.widget.TextView */;
14
15 /**
16 * Gets the native [UITextView](https://developer.apple.com/documentation/uikit/uitextview) that represents the user interface for this component. Valid only when running on iOS.
17 */
18 ios: any /* UITextView */;
19
20 /** Gets or sets html string for the HtmlView. */
21 html: string;
22
23 /** Gets or sets a value indicating whether HtmlView is selectable. */
24 selectable: boolean;
25}
26
27export const htmlProperty: Property<HtmlView, string>;