# Relevant Cardscript iconColumn

Cardscript

Defines a container that is part of a ColumnSet.

# 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

# items

  • Type: array

# type

Must be "Column".

  • Type: string
  • Values:
    • Column

# Optional properties

# selectAction

An Action that will be invoked when the Column is tapped or selected. Action.ShowCard is not supported.

  • Type: object

# style

Style hint for Column.

  • Type: string
  • Values:
    • default
    • emphasis

# width

"auto", "stretch", or a number representing relative width of the column in the column group.

  • Type: string,number

# 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": "Column",
  "description": "Defines a container that is part of a ColumnSet.",
  "allOf": [
    {
      "$ref": "#/definitions/CardElement"
    }
  ],
  "properties": {
    "items": {
      "description": "The card elements to include in the `Column`.",
      "$ref": "#/definitions/CardElements"
    },
    "selectAction": {
      "description": "An Action that will be invoked when the `Column` is tapped or selected. `Action.ShowCard` is not supported.",
      "type": "object",
      "oneOf": [
        {
          "$ref": "#/definitions/Action.Submit"
        },
        {
          "$ref": "#/definitions/Action.OpenUrl"
        }
      ]
    },
    "style": {
      "type": "string",
      "description": "Style hint for `Column`.",
      "enum": [
        "default",
        "emphasis"
      ]
    },
    "width": {
      "type": [
        "string",
        "number"
      ],
      "description": "`\"auto\"`, `\"stretch\"`, or a number representing relative width of the column in the column group."
    },
    "type": {
      "type": "string",
      "description": "Must be `\"Column\"`.",
      "enum": [
        "Column"
      ]
    }
  },
  "required": [
    "items"
  ],
  "typeSafe": "column",
  "example": "FIXME!",
  "propertySummary": [
    {
      "name": "items",
      "required": "Required",
      "text": "The card elements to include in the `Column`."
    },
    {
      "name": "selectAction",
      "type": "object",
      "required": "Optional",
      "text": "An Action that will be invoked when the `Column` is tapped or selected. `Action.ShowCard` is not supported."
    },
    {
      "name": "style",
      "type": "string",
      "required": "Optional",
      "text": "Style hint for `Column`."
    },
    {
      "name": "width",
      "type": [
        "string",
        "number"
      ],
      "required": "Optional",
      "text": "`\"auto\"`, `\"stretch\"`, or a number representing relative width of the column in the column group."
    },
    {
      "name": "type",
      "type": "string",
      "required": "Optional",
      "text": "Must be `\"Column\"`."
    }
  ]
}
Last Updated: 9/10/2023, 11:30:14 AM