c# - 如何在机器人框架中为 MS 团队垂直堆叠自适应卡片中的按钮
问题描述
我尝试使用列集,每列包含一个按钮,但 MS Teams 不会以首选格式呈现按钮,而 webchat 会。
此外,我尝试更改 MS Teams 中“MIS 报告”按钮的大小,以便所有按钮的大小相同,而与内容无关,但我发现自适应卡片中没有这样的属性。
解决方案
您能否尝试在不同列集中的不同列中添加按钮?我已经尝试了下面的 json,它对我有用:
{
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Submit",
"title": "Action.Submit"
}
]
}
]
}
]
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Submit",
"title": "Submit action 2"
}
]
}
]
}
]
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Submit",
"title": "Submit action3"
}
]
}
]
}
]
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
}
推荐阅读
- java - 如何编写methode indexOf()的Junit?
- javascript - 如何在javascript中的字符串内的某个索引处附加字符
- javascript - 无线电输入触发器(单击)事件上的 Angular 2 keydowns
- java - 无法让 jOOQ CodeGen 工具工作
- django - 如何保存和显示与其他数据关联的 DetailView 数据
- python - 如何从python中的List中拆分代码和日期?
- c++ - What explains so many moves and destructions in this snippet
- c# - 重命名 .csv 文件并尝试立即打开提供打开只读模式的选项
- lambda - c++ lambda表达式函数使用引用导致分段错误
- azure - 如何在 Azure 逻辑应用自定义连接器中返回文件