本文介绍了自适应卡-嵌套方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在自适应卡的columnSet/column中包含动作?
Is it possible to include action inside columnSet/column in the adaptive cards ?
例如,我想要这样的东西:-
For example I want something like this :-
----- Body
|___ columnSet
|___ column1
| |___textblock
| |___image
| |___action.url
|
|___ column2
| |___textblock
| |___image
| |___action.url
我确实使用可视化工具进行了尝试,但是尽管可视化工具未显示任何错误,但没有显示action.url.
I did try it with visualiser but the action.url doesn't show despite the visualiser did not show any error.
谢谢您的帮助.
推荐答案
列具有selectAction
属性,可以将列变成命中目标.
Column has a selectAction
property that can turn the column into a hit target.
{
"type": "Column",
"items": [
{
"type": "TextBlock",
"text": "Column 1"
},
{
"type": "Image",
"url": "http://adaptivecards.io/api/cat"
}
],
"selectAction": {
"type": "Action.OpenUrl",
"title": "cool link",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
查看此处的工作示例:
http://adaptivecards.io/visualizer/? card =/explorer/cards/Column.SelectAction.json
这篇关于自适应卡-嵌套方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!