【发布时间】:2021-01-15 15:08:13
【问题描述】:
在 Teams 上显示时,我无法尝试破坏 ChoiceSet 中的文本。
可以在 BotEmulator 和 Adaptive Card Designer 上进行换行。
但我不明白为什么你不能在 Teams 上做到这一点。
如果有人知道为什么会这样,请告诉我。
Adaptive Card的Json如下。
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.2",
"body": [
{
"type": "Input.ChoiceSet",
"choices": [
{
"title": `choice1 \n test`,
"value": `choice1 \n test`
},
{
"title": `choice2 \n test`,
"value": `choice2 \n test`
},
{
"title": `choice3 \n test`,
"value": `choice3 \n test`
},
{
"title": `choice4 \n test`,
"value": `choice4 \n test`
}
],
"id": "choice1",
"style": "expanded",
"wrap": true,
"isMultiSelect": true
}
]
}
请告诉我该怎么做。
【问题讨论】:
-
嘿,你能试试用 \n\n 或 \r\r 吗?认为这会对 MS Teams 产生影响。
标签: botframework microsoft-teams adaptive-cards