You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`<Image>` is a UI component that shows an image from an [ImageSource](https://docs.nativescript.org/api-reference/modules/_image_source_) or from a URL.
#### Displaying an image with a font icon in {N} 6.2+
36
+
37
+
In NativeScript-Vue, `.decode` is required for parsing properties that have HTML entities in them.
38
+
39
+
```html
40
+
<Imagesrc.decode="font://"class="fas" />
41
+
```
42
+
35
43
[> screenshots for=Image <]
36
44
37
45
## Props
38
46
39
47
| Name | Type | Description |
40
48
|------|------|-------------|
41
-
| `src` | `String` or [`ImageSource`](https://docs.nativescript.org/api-reference/modules/_image_source_) | Gets or sets the source of the image as a URL or an image source.
49
+
| `src` | `String` or [`ImageSource`](https://docs.nativescript.org/api-reference/modules/_image_source_) | Gets or sets the source of the image as a URL or an image source. If you use the new font:// icon protocol in {N} 6.2, make sure you add .decode to the name of the property - e.g. `src.decode="font://"`
42
50
|`imageSource` | [`ImageSource`](https://docs.nativescript.org/api-reference/modules/_image_source_) | Gets or sets the image source of the image.
43
51
| `tintColor` | `Color` | (Style property) Sets a color to tint template images.
44
52
| `stretch` | `Stretch` | (Style property) Gets or sets the way the image is resized to fill its allocated space.<br/>Valid values: `none`, `aspectFill`, `aspectFit`, or `fill`.<br/>For more information, see [Stretch](https://docs.nativescript.org/api-reference/modules/_ui_enums_.stretch).
0 commit comments