# Relevant Cardscript iconCollapsible

Cardscript

A container which expands when clicked on to show a card.

# Example

{
  "type": "AdaptiveCard",
  "body": [
    {
      "type": "Collapsible",
      "title": "Click me!",
      "card": {
        "type": "AdaptiveCard",
        "body": [
          {
            "type": "TextBlock",
            "text": "Hello!"
          }
        ]
      }
    }
  ],
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.0"
}

# Required properties

# type

Must be "Collapsible".

  • Type: string
  • Values:
    • Collapsible

# title

Text to be displayed as label.

  • Type: string

# card

Root element in an Adaptive Card.

  • Type: object

# JSON Schema

{
  "additionalProperties": true,
  "type": "Collapsible",
  "description": "A container which expands when clicked on to show a card.",
  "properties": {
    "type": {
      "type": "string",
      "description": "Must be `\"Collapsible\"`.",
      "enum": [
        "Collapsible"
      ]
    },
    "title": {
      "type": "string",
      "description": "Text to be displayed as label."
    },
    "card": {
      "$ref": "#/definitions/AdaptiveCard"
    }
  },
  "required": [
    "type",
    "title",
    "card"
  ],
  "typeSafe": "collapsible",
  "example": "FIXME!",
  "propertySummary": [
    {
      "name": "type",
      "type": "string",
      "required": "Required",
      "text": "Must be `\"Collapsible\"`."
    },
    {
      "name": "title",
      "type": "string",
      "required": "Required",
      "text": "Text to be displayed as label."
    },
    {
      "name": "card",
      "required": "Required"
    }
  ]
}
Last Updated: 9/10/2023, 11:30:14 AM