An image type is a container of an image asset with an associated caption.
Properties
Name | Type | Format | Description |
---|---|---|---|
asset | object | Asset | The asset that is linked to from the entry. |
caption | string | The image caption, defined in the entry. |
Note The caption property allows instance specific text to be associated with a linked image asset.
Example
ContensisClient.entries.get({ id: '<entry_id>', linkDepth: 1 }).then(function (entry) {
console.log(entry.thumbnailImage.asset.sys.uri);
console.log(entry.thumbnailImage.altText);
console.log(entry.thumbnailImage.asset.sys.properties.width);
console.log(entry.thumbnailImage.asset.sys.properties.height);
});