简体   繁体   English

样式化 action.submit 按钮在自适应卡中不起作用

[英]Styling action.submit button doesn't work in Adaptive card

I've tried adding style for a Submit button in the designer as well as in the local setup, but it doesn't seem to work in any of the Adaptive cards' versions.我已经尝试在设计器以及本地设置中为提交按钮添加style ,但它似乎不适用于任何自适应卡的版本。

For some reason, when multiple items are being rendered, the last button has got another background color for which I tried adding a style but it doesn't work.出于某种原因,当渲染多个项目时,最后一个按钮有另一种背景颜色,我尝试为其添加样式但它不起作用。 在此处输入图像描述

{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.2",
    "actions": [
        {
            "type": "Action.Submit",
            "title": "Submit",
            "style": "destructive"
        }
    ]
}

Teams Does not support Card action button styling in cards. Teams 不支持卡片中的卡片操作按钮样式。 This is by design.这是设计使然。 The same is mentioned as a note here https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-actions?tabs=json#adaptive-cards-actions这里提到了同样的注释https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-actions?tabs=json#adaptive-cards-actions

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用LUIS处理自适应卡上的Action.submit - How to handle the Action.submit on an adaptive card with LUIS 从Botframework中的自适应卡`Action.Submit`获取变量 - Get variable from Adaptive card `Action.Submit` in Botframework 自适应卡中的Action.Submit按钮在Skype中不呈现 - Action.Submit buttons in Adaptive card does not render in Skype 自适应卡中的样式提交操作 - Styling in Adaptive Card Submit Action 我们可以在自适应卡片设计器中为按钮(Action.Submit)设置“isVisible”:false 以在 Teams mobile 中呈现卡片吗 - Can we Set "isVisible":false for buttons(Action.Submit) in adaptive card designer to render card in Teams mobile 发送单个自适应卡作为欢迎,然后采取action.submit数据和结束对话 - Send single adaptive card as welcome and then take action.submit data and end conversation Teams Bot Adaptive Card action.Submit 返回 undefined 但在 Bot Emulator 中工作 - Teams Bot Adaptive Card action.Submit returns undefined but works in Bot Emulator 如何在自适应卡Bot应用程序中使用action.submit调用方法 - How to call method using action.submit in adaptive card Bot application 无法让“Action.Submit”在 Azure 机器人框架的架构 v1.4 中工作 - Can't get "Action.Submit" to work in schema v1.4 for Azure bot framework 带有 Action.submit 的 AdaptiveCard 按钮在 android 设备上不起作用 - AdaptiveCard button with Action.submit not working on android device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM