botframework - Microsoft Teams - ms 团队机器人中的多选
解决方案
检查并构建样本。检查此示例自适应卡
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.2",
"speak": "<s>Your meeting about \"Adaptive Card design session\"<break strength='weak'/> is starting at ${formatDateTime(start.dateTime, 'HH:mm')}pm</s><s>Do you want to snooze <break strength='weak'/> or do you want to send a late notification to the attendees?</s>",
"body": [
{
"type": "TextBlock",
"text": "${summary}",
"size": "Large",
"weight": "Bolder"
},
{
"type": "TextBlock",
"text": " ${location} ",
"isSubtle": true
},
{
"type": "TextBlock",
"text": "${formatDateTime(start.dateTime, 'HH:mm')} - ${formatDateTime(end.dateTime, 'hh:mm')}",
"isSubtle": true,
"spacing": "None"
},
{
"type": "TextBlock",
"text": "Snooze for"
},
{
"type": "Input.ChoiceSet",
"id": "snooze",
"value": "${reminders.overrides[0].minutes}",
"choices": [
{
"$data": "${reminders.overrides}",
"title": "${hours} hours",
"value": "${hours}"
},
{
"$data": "${reminders.overrides}",
"title": "${minutes} minutes",
"value": "${minutes}"
},
{
"$data": "${reminders.overrides}",
"title": "${seconds} seconds",
"value": "${seconds}"
}
],
"isMultiSelect": true
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Snooze",
"data": {
"x": "snooze"
}
},
{
"type": "Action.Submit",
"title": "I'll be late",
"data": {
"x": "late"
}
}
]
}
推荐阅读
- php - 使用 PHP 和 Nodejs Socket.io
- node.js - 我们在 Node.js 程序中实际从 Express 导入什么
- javascript - svg 路径,在 wordpress 中的页面滚动上具有属性 stroke-dashoffset 和 svg“填充”
- python - 从字符串字符递归构建字典
- excel - 在另一个宏运行之前,工作表中的 VBA 代码不会在其他计算机上运行
- sas - SAS 将列转置为行,将值转置为列
- sql - SQL Server:列出表名及其 id
- java - 在构造函数中创建具有数组特征的数据结构
- linear-algebra - 3D 索具:皮带扭曲或帧插值超过 180 度。欧拉、矩阵、四元数?
- python - 当 url 以 50 的倍数变化时如何抓取页面?