【发布时间】:2018-11-04 21:39:29
【问题描述】:
这两个问题都是关于 AdaptiveCard Botframework 的。
Q1:我已经在adaptivecard中设置了默认的placeholder值:text1,但是在触发事件,占位符无法正确显示,占位符为空白。占位符中没有提示信息(text1)。即使我将 MS 示例代码复制到我的源代码,它仍然无法正常工作。我在 Chrome、Firefox 和 IE11 中都试过,但都失败了。
The placeholder was blank
MS samplecode
MS sample linkage
Q2:我已经设置使用 adaptivecard 的列集中两列的宽度(一列设置为 40,另一列设置为 10),但似乎不工作。 网格显示不正确。
My source
Width limit seems not working
[
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "Test",
"weight": "bolder",
"size": "medium"
},
{
"type": "ColumnSet",
"spacing": "none",
"columns": [
{
"type": "Column",
"width": 40,
"items": [
{
"type": "Input.ChoiceSet",
"id": "country",
"style": "compact",
"placeholder": "Country",
"value": "1",
"choices": [
{
"title": "UnitedStates",
"value": "US"
}
]
}
]
},
{
"type": "Column",
"width": 10,
"items": [
{
"type": "Input.Number",
"placeholder": "text1",
"min": 0,
"id": "Text1"
}
]
}
]
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Button"
}
]
}
}
]
【问题讨论】:
-
您在哪个渠道获得这些结果?
-
可视化工具中的占位符似乎按预期运行:imgur.com/a/MNC3L 您在客户端使用哪个版本的自适应卡片库?机器人是使用 node 还是 .net sdk 构建的?
标签: grid size botframework placeholder adaptive-cards