angular - AdaptiveCards HostConfig 集成
问题描述
有谁知道如何在 Asp.Net Core 中使用 webchat CDN 集成 HostConfig 以设置 AdaptiveCards 样式?
例如文件名是什么?它去哪里等等?
我的项目设置是:Asp.Net Core with Angular
解决方案
RenderWebChat 接受一个名为adaptiveCardHostConfig 的参数,您可以在其中传递您的配置。您可以在此处查看网络聊天 API 参考https://github.com/microsoft/BotFramework-WebChat#web-chat-api-reference
例子
window.WebChat.renderWebChat({
adaptiveCardHostConfig: {
actions: {
actionsOrientation: 'horizontal',
}
},
styleOptions: {
rootHeight: 500,
rootWidth: 500,
},
directLine: dl,
userID: '@Model.UserId',
username: 'User',
locale: 'en-US',
}, document.getElementById('webchat'));
推荐阅读
- excel - 通过 vlookup 拉取关联值
- php - 有条件的,基于另一个模型的价值
- reactjs - 如果我将 getRequestHandler 与 Express Js 应用程序一起使用,Next.Js app.render() 不起作用
- apache-spark - 更改了 spark-sql 中的前 N 个值
- python - 如何将 K.tile 的值设置为 -1 以匹配 Keras 中的各种输入?
- kubernetes - 在自定义 helm 图表中禁用子图表
- vuejs2 - 如何使用 isVerified()
- python - 批处理脚本未完全运行(但以前可以运行) - 如何查看错误?
- reactjs - 我可以在我的网站上的两个不同路径上托管相同的 React 应用程序吗?
- java - 当我在平板电脑上运行应用程序时,Android Studio 中的按钮看起来很乱