generate-data-card.ftl 987 Bytes
{
  "elements": [
    {
      "tag": "markdown",
      "content": "${content}"
    }
    <#if action??>,
    {
      "tag": "action",
      "actions": [
        {
          "tag": "select_static",
          "placeholder": {
            "tag": "plain_text",
            "content": "${action.action_content}"
          },
          "value":{
            "key" : "TEST_DATA.${action.action_type}"
          },
          "options": [
            <#list action.options as option>
            {
              "text": {
                "tag": "plain_text",
                "content": "${option.option}"
              },
              "value": "${option.mobile_option}"
            }
            <#if option_has_next>,</#if>
            </#list>
          ]
        }
      ]
    }
    </#if>
  ],
  "config": {
    "wide_screen_mode": true,
    "update_multi":true
  },
  "header": {
    "template": "${color}",
    "title": {
      "tag": "plain_text",
      "content": "${mobile}"
    }
  }
}