Bot框架中用于自适应卡的HostConfig [英] HostConfig for adaptive cards in bot framework

查看:61
本文介绍了Bot框架中用于自适应卡的HostConfig的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将自适应卡与bot框架node.js SDK结合使用.将那些自适应卡发送给我的用户已经成功.现在我想走得更远:

I'm using the adaptive cards with the bot framework node.js SDK. Sending those adaptive cards to my users already succeeded. Now I want to go further:

网站上,他们告诉您可以进一步自定义卡片的外观.现在我想知道这是如何工作的?如何调整该hostconfig文件以更改颜色,填充,背景等.如何使用CSS和HTML来制作卡片,就像它们在网站上所说的那样?

On the site they tell you can customize the look and feel of the card further. Now I wonder how this works? How can I adjust this hostconfig file to change colors, padding, background etc. And how can I use CSS and HTML to build cards, like they say on the site?

预先感谢

推荐答案

HostConfig与应用程序有关,该应用程序将接收具有对外观和感觉的控制权的卡,从而使其与主机应用程序UX相匹配.

HostConfig is about the application which is receiving the card having control over the look and the feel of the rendering so it matches the host application UX.

卡片的生产者可以使用"none","default"或"strong"来控制间距,但是由接收者来决定这是什么意思.

The producer of the card can control spacing using "none", "default" or "strong", but it 's up the recipient to decide what that means.

这篇关于Bot框架中用于自适应卡的HostConfig的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆