【问题标题】:Make Action Button Blue将操作按钮设为蓝色
【发布时间】:2019-12-11 17:53:50
【问题描述】:

我正在使用 Adaptive Cards 1.2 并在 MS Teams 中显示这些卡片。我想将操作按钮的颜色设置为蓝色。我尝试设置 Style 属性但没有运气。

card.Actions = new List() { 新的 AdaptiveSubmitAction { 标题=“确认”, DataJson = "{ \"Type\": \"find-usr-common-meeting-slot\" }", 风格="正面", } };

【问题讨论】:

    标签: adaptive-cards


    【解决方案1】:

    不是 100% 肯定,而是基于设计师:https://www.adaptivecards.io/designer/,当您选择 MS Teams Light 或 Dark 时,它只会忽略样式属性。

    按钮的颜色基于主机。据我记得,MS Teams 只是希望按钮看起来相同,因此您无法更改样式。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-12-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多