在 MS 团队留言卡的表格中添加数据 [英] adding data in table in MS teams message card
本文介绍了在 MS 团队留言卡的表格中添加数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
想要在留言卡中像这样显示表格中的数据.任何指针???
Want to display data in table like this in the message card. Any pointers???
推荐答案
我可以使用留言卡本身以下面的方式插入 HTML,HTML 作为键text"的值我把它放在一个单独的组下
I was able to use message card itself for inserting HTML in the way below, the HTML went as a value against the key "text" and I made it a separate group under sections
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"themeColor": "0076D7",
"summary": "XXXX",
"sections": [
{
"activityTitle": "XXXX",
"activitySubtitle": "",
"activityImage": "",
"facts": [
{
"name": "XX",
"value": "**1**"
},
{
"name": "YY",
"value": "**test**"
}
],
"markdown": true
},
{
"startGroup": true,
"text": "<table bordercolor='black' border= '2'><thead><tr style = 'background-color : Teal; color: White'><th>Task</th><th>Status</th><th>Start Time</th><th>End Time</th></tr></thead></thead><tbody ><tr><td>xxx</td><td>yyy</td><td>14:25</td></tr><tr><td>xxx</td><td>yyy</td><td>15:25</td><td>16:25</td></tr></tbody></table>"
}
]
}
这篇关于在 MS 团队留言卡的表格中添加数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文