# ColumnSet
Cardscript
ColumnSet divides a region into Columns, allowing elements to sit side-by-side.
# Example
{
"type": "AdaptiveCard",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"items": [
{
"type": "TextBlock",
"text": "col-1"
},
{
"type": "TextBlock",
"text": "col-1"
}
]
},
{
"type": "Column",
"items": [
{
"type": "TextBlock",
"text": "col-2"
}
]
}
]
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}
# Required properties
# type
Must be "ColumnSet"
.
- Type:
string
- Values:
ColumnSet
# Optional properties
# columns
The array of Columns
to divide the region into.
- Type:
array
# selectAction
An Action that will be invoked when the ColumnSet
is tapped or selected. Action.ShowCard
is not supported.
- Type:
object
# 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": "ColumnSet",
"description": "ColumnSet divides a region into Columns, allowing elements to sit side-by-side.",
"allOf": [
{
"$ref": "#/definitions/CardElement"
}
],
"properties": {
"columns": {
"type": "array",
"description": "The array of `Columns` to divide the region into.",
"items": {
"$ref": "#/definitions/Column"
}
},
"selectAction": {
"description": "An Action that will be invoked when the `ColumnSet` is tapped or selected. `Action.ShowCard` is not supported.",
"type": "object",
"oneOf": [
{
"$ref": "#/definitions/Action.Submit"
},
{
"$ref": "#/definitions/Action.OpenUrl"
}
]
},
"type": {
"type": "string",
"description": "Must be `\"ColumnSet\"`.",
"enum": [
"ColumnSet"
]
}
},
"required": [
"type"
],
"typeSafe": "column-set",
"example": "FIXME!",
"propertySummary": [
{
"name": "columns",
"type": "array",
"required": "Optional",
"text": "The array of `Columns` to divide the region into."
},
{
"name": "selectAction",
"type": "object",
"required": "Optional",
"text": "An Action that will be invoked when the `ColumnSet` is tapped or selected. `Action.ShowCard` is not supported."
},
{
"name": "type",
"type": "string",
"required": "Required",
"text": "Must be `\"ColumnSet\"`."
}
]
}