Schema Explorer
ImageSet
The ImageSet displays a collection of Images similar to a gallery.
Property | Type | Required | Description | Version |
---|---|---|---|---|
type | "ImageSet" |
Yes | Must be "ImageSet" . |
1.0 |
images | Image[] |
Yes | The array of Image elements to show. |
1.0 |
imageSize | ImageSize |
No | Controls the approximate size of each image. The physical dimensions will vary per host. | 1.0 |
Inherited properties
Property | Type | Required | Description | Version |
---|---|---|---|---|
fallback | Element , FallbackOption |
No | Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met. | 1.2 |
height | BlockElementHeight |
No | Specifies the height of the element. | 1.1 |
separator | boolean |
No | When true , draw a separating line at the top of the element. |
1.0 |
spacing | Spacing |
No | Controls the amount of spacing between this element and the preceding element. | 1.0 |
id | string |
No | A unique identifier associated with the item. | 1.0 |
isVisible | boolean |
No, default: true |
If false , this item will be removed from the visual tree. |
1.2 |
requires | Dictionary<string> |
No | A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered. | 1.2 |
Example
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "ImageSet",
"images": [
{
"type": "Image",
"url": "http://adaptivecards.io/content/cats/1.png"
},
{
"type": "Image",
"url": "http://adaptivecards.io/content/cats/1.png"
},
{
"type": "Image",
"url": "http://adaptivecards.io/content/cats/1.png"
},
{
"type": "Image",
"url": "http://adaptivecards.io/content/cats/1.png"
},
{
"type": "Image",
"url": "http://adaptivecards.io/content/cats/1.png"
},
{
"type": "Image",
"url": "http://adaptivecards.io/content/cats/1.png"
}
]
}
]
}
Properties
images
The array of Image
elements to show.
- Type:
Image[]
- Required: Yes
- Allowed values:
Image
imageSize
Controls the approximate size of each image. The physical dimensions will vary per host.
- Type:
ImageSize
- Required: No
- Allowed values:
"auto"
: Image will scale down to fit if needed, but will not scale up to fill the area."stretch"
: Image with both scale down and up to fit as needed."small"
: Image is displayed with a fixed small width, where the width is determined by the host."medium"
: Image is displayed with a fixed medium width, where the width is determined by the host."large"
: Image is displayed with a fixed large width, where the width is determined by the host.
Example
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "ImageSet",
"imageSize": "small",
"images": [
{
"type": "Image",
"url": "http://adaptivecards.io/content/cats/1.png"
},
{
"type": "Image",
"url": "http://adaptivecards.io/content/cats/2.png"
},
{
"type": "Image",
"url": "http://adaptivecards.io/content/cats/3.png"
},
{
"type": "Image",
"url": "http://adaptivecards.io/content/cats/1.png"
},
{
"type": "Image",
"url": "http://adaptivecards.io/content/cats/2.png"
},
{
"type": "Image",
"url": "http://adaptivecards.io/content/cats/3.png"
}
]
}
]
}
fallback
Describes what to do when an unknown element is encountered or the requires of this or any children can't be met.
- Type:
Element
,FallbackOption
- Version : 1.2
- Required: No
- Allowed values:
ActionSet
ColumnSet
Container
FactSet
Image
ImageSet
Input.ChoiceSet
Input.Date
Input.Number
Input.Text
Input.Time
Input.Toggle
Media
RichTextBlock
TextBlock
"drop"
: Causes this element to be dropped immediately when unknown elements are encountered. The unknown element doesn't bubble up any higher.
height
Specifies the height of the element.
- Type:
BlockElementHeight
- Version : 1.1
- Required: No
- Allowed values:
"auto"
: The height of the container will be determined by the height of its contents."stretch"
: The container will stretch its height to the available remaining height of the parent container.
separator
When true
, draw a separating line at the top of the element.
- Type:
boolean
- Required: No
spacing
Controls the amount of spacing between this element and the preceding element.
- Type:
Spacing
- Required: No
- Allowed values:
"default"
"none"
"small"
"medium"
"large"
"extraLarge"
"padding"
id
A unique identifier associated with the item.
- Type:
string
- Required: No
isVisible
If false
, this item will be removed from the visual tree.
- Type:
boolean
- Version : 1.2
- Required: No, default:
true
requires
A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.
- Type:
Dictionary<string>
- Version : 1.2
- Required: No