【问题标题】:How to break line in ChoiceSet of Adaptive Card on Teams?如何在 Teams 自适应卡的 ChoiceSet 中换行?
【发布时间】: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


【解决方案1】:

感谢您向我们报告此事。我们可以复制它,我为此提出了一个错误。目前,我们没有与您分享修复的预计到达时间。

【讨论】:

  • 在目前还没有解决方案的情况下,这样可以吗?
  • 是的。目前没有解决方案。我们正在努力修复这个错误。
  • 非常感谢。您是 Microsoft 人员并且适合吗?对于这个问题,我正在等待确定日期。
  • @GousiaBegum 这仍然是一个问题。已经 > 1 年了!
【解决方案2】:

目前,仅 Teams Text formatting in cards - Teams | Microsoft Docs 上的文本块、事实标题和事实值支持降价。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-01-13
    • 2021-02-06
    • 2020-02-17
    • 2021-12-05
    • 1970-01-01
    • 2020-07-29
    • 2019-01-18
    • 2020-04-06
    相关资源
    最近更新 更多