# Relevant Cardscript iconActionSet

Cardscript

ActionSet allows actions to be displayed within a card.

# Example

{
  "type": "AdaptiveCard",
  "body": [
    {
      "type": "ActionSet",
      "spacing": "large",
      "actions": [
        {
          "type": "Action.OpenUrl",
          "title": "Action.OpenUrl",
          "url": "https://github.com/wmfs/cardscript"
        },
        {
          "type": "Action.Submit",
          "title": "Action.Submit",
          "data": {
            "x": "y"
          }
        }
      ]
    }
  ],
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.0"
}

# Required properties

# type

Must be "ActionSet".

  • Type: string
  • Values:
    • ActionSet

# actions

  • Type: array

# Optional properties

# spacing

Controls the amount of spacing between this element and the preceding element.

  • Type: string
  • Values:
    • none
    • small
    • default
    • medium
    • large
    • extraLarge
    • padding

# actionStyle

How to display the action set.

  • Type: string
  • Default: "list"
  • Values:
    • list
    • dropdown

# label

Text displayed as label if ActionSet is in dropdown style.

  • Type: string

# id

A unique identifier associated with the element.

  • Type: string

# separator

When true, draw a separating line at the top of the element.

  • Type: boolean

# JSON Schema

{
  "additionalProperties": true,
  "type": "ActionSet",
  "description": "ActionSet allows actions to be displayed within a card.",
  "allOf": [
    {
      "$ref": "#/definitions/CardElement"
    }
  ],
  "properties": {
    "type": {
      "type": "string",
      "description": "Must be `\"ActionSet\"`.",
      "enum": [
        "ActionSet"
      ]
    },
    "actions": {
      "description": "The Actions to show in the card's action bar.",
      "$ref": "#/definitions/Actions"
    },
    "spacing": {
      "$ref": "#/definitions/SpacingStyle"
    },
    "actionStyle": {
      "type": "string",
      "description": "How to display the action set.",
      "enum": [
        "list",
        "dropdown"
      ],
      "default": "list"
    },
    "label": {
      "type": "string",
      "description": "Text displayed as label if ActionSet is in dropdown style."
    }
  },
  "required": [
    "type",
    "actions"
  ],
  "typeSafe": "action-set",
  "example": "FIXME!",
  "propertySummary": [
    {
      "name": "type",
      "type": "string",
      "required": "Required",
      "text": "Must be `\"ActionSet\"`."
    },
    {
      "name": "actions",
      "required": "Required",
      "text": "The Actions to show in the card's action bar."
    },
    {
      "name": "spacing",
      "required": "Optional"
    },
    {
      "name": "actionStyle",
      "type": "string",
      "required": "Optional",
      "text": "How to display the action set."
    },
    {
      "name": "label",
      "type": "string",
      "required": "Optional",
      "text": "Text displayed as label if ActionSet is in dropdown style."
    }
  ]
}
Last Updated: 9/10/2023, 11:30:14 AM