Skip to content

Commit 49f9a6a

Browse files
authored
fix image src type (#111)
1 parent ce223ad commit 49f9a6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui-and-styling.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2249,8 +2249,8 @@ In NativeScript-Vue, `.decode` is required for parsing properties that have HTML
22492249

22502250
| Name | Type | Description |
22512251
| -------------- | -------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2252-
| `src` | `String` or [`ImageSource`](/api-reference/classes/imagesource.html) | Gets or sets the source of the image as a URL or an image source. In NativeScript-Vue, if you use the font:// icon protocol that was introduced in {N} 6.2, make sure you add .decode to the name of the property - e.g. `src.decode="font://"` |
2253-
| `imageSource` | [`ImageSource`](/api-reference/classes/imagesource.html) | Gets or sets the image source of the image. |
2252+
| `src` | `String` or [`ImageSource`](/api-reference/classes/imagesource) or [`ImageAsset`](/api-reference/classes/imageasset) | Gets or sets the source of the image as a URL or an image source. In NativeScript-Vue, if you use the font:// icon protocol that was introduced in {N} 6.2, make sure you add .decode to the name of the property - e.g. `src.decode="font://"` |
2253+
| `imageSource` | [`ImageSource`](/api-reference/classes/imagesource) | Gets or sets the image source of the image. |
22542254
| `tintColor` | `Color` | (Style property) Sets a color to tint template images. |
22552255
| `stretch` | `ImageStretch` | (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 [ImageStretch](/api-reference/modules/coretypes.imagestretch.html). |
22562256
| `loadMode` | | Gets or sets the loading strategy for the images on the local file system.<br/>Valid values: `sync` or `async`.<br/>Default value: `async`.<br/>For more information, see [loadMode](/api-reference/classes/image.html#loadmode). |

0 commit comments

Comments
 (0)