# Tab
Cardscript
Defines a container that is part of a TabSet.
# Example
{
"type": "AdaptiveCard",
"body": [
{
"id": "tabSet",
"type": "TabSet",
"spacing": "large",
"tabs": [
{
"type": "Tab",
"title": "Tab 1",
"items": [
{
"type": "TextBlock",
"text": "Tab 1 Content"
}
]
},
{
"type": "Tab",
"title": "Tab 2",
"items": [
{
"type": "TextBlock",
"text": "Tab 2 Content"
}
]
}
]
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}
# Required properties
# type
Must be "Tab"
.
- Type:
string
- Values:
Tab
# items
- Type:
array
# title
The title of the Tab
.
- Type:
string
# Optional properties
# id
A unique identifier associated with the element.
- Type:
string
# spacing
Controls the amount of spacing between this element and the preceding element.
- Type:
string
- Values:
none
small
default
medium
large
extraLarge
padding
# separator
When true
, draw a separating line at the top of the element.
- Type:
boolean
# JSON Schema
{
"additionalProperties": true,
"type": "Tab",
"description": "Defines a container that is part of a TabSet.",
"allOf": [
{
"$ref": "#/definitions/CardElement"
}
],
"properties": {
"type": {
"type": "string",
"description": "Must be `\"Tab\"`.",
"enum": [
"Tab"
]
},
"items": {
"description": "The card elements to include in the `Tab`.",
"$ref": "#/definitions/CardElements"
},
"title": {
"type": "string",
"description": "The title of the `Tab`."
}
},
"required": [
"items",
"title"
],
"typeSafe": "tab",
"example": "FIXME!",
"propertySummary": [
{
"name": "type",
"type": "string",
"required": "Optional",
"text": "Must be `\"Tab\"`."
},
{
"name": "items",
"required": "Required",
"text": "The card elements to include in the `Tab`."
},
{
"name": "title",
"type": "string",
"required": "Required",
"text": "The title of the `Tab`."
}
]
}