在我的机器人应用程序中,我需要在文本之间显示一个 action.open Url 按钮。我需要在日期结束时在 json 的 body 标记内添加 Action.Open url,如图所示,并且需要单击url 链接做一些动作。
是否可以在文本之间或正文标记内的文本顶部添加按钮。?
{
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"color": "Warning",
"text": "Company Name"
},
{
"type": "TextBlock",
"text": "Meeting Details",
"wrap": true
},
{
"type": "FactSet",
"facts": [
{
"title": "Description",
"value": "xxx"
},
{
"title": "Key Note Speaker",
"value": "yyy"
},
{
"title": "Date :",
"value": "03/25/2019 12:30:00 PM"
}
]
},
{
"type": "TextBlock",
"horizontalAlignment": "Center",
"size": "ExtraLarge",
"weight": "Bolder",
"color": "Accent",
"text": "**************"
},
{
"type": "TextBlock",
"text": "Meeting Details",
"wrap": true
},
{
"type": "FactSet",
"facts": [
{
"title": "Description",
"value": "xxx"
},
{
"title": "Key Note Speaker",
"value": "yyy"
},
{
"title": "Date :",
"value": "03/25/2019 12:30:00 PM"
}
]
},
{
"type": "TextBlock",
"horizontalAlignment": "Center",
"size": "ExtraLarge",
"weight": "Bolder",
"color": "Accent",
"text": "**************"
}
],
"actions": [
{
"type": "Action.OpenUrl",
"title": "Add to Calender",
"url": "http://adaptivecards.io"
},
{
"type": "Action.OpenUrl",
"title": " Click here to add more Info ",
"url": "http://adaptivecards.io"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}