botframework - 有没有办法删除网络聊天中的文件附加图标?
解决方案
是的,您可以传入hideUploadButton: true
in styleOptions
。然后将其传递给网络聊天渲染器。有关styleOptions
参数的完整列表,请参考此文件。
const styleOptions = {
hideUploadButton: true,
}
[ ... ]
window.WebChat.renderWebChat(
{
directLine: window.WebChat.createDirectLine( {
token: token
} ),
styleOptions: styleOptions
document.getElementById( 'webchat' )
);
希望有帮助!
推荐阅读
- c++ - 有谁知道为什么我在 macOS 上构建 boost 但没有创建 boost::fiber 库?
- javascript - Stacked bars chart not rendering on mobile
- android - 如何每次使用 gradle 制作方面编织 kotlin 代码
- apache-kafka - Produce 调用配置了 IAsyncSerializer 值序列化器,但使用 Avro 序列化器时需要 ISerializer
- jquery - 用jquery替换html元素不起作用
- wpf - 禁用列表框的 Powershell WPF 样式模板
- r - For 循环在循环中失败 grobs [[i]] 中的错误:下标超出范围
- rust - 为什么将 tokio_postgres::Transaction 作为参考传递要求指示匿名生命周期?
- amazon-web-services - 使用 AWS 进入我的 CodePipeline 的“部署”阶段时出现持续错误
- rust - 为什么我会收到错误“const fn 中的函数指针不稳定”,但是当包装在新类型中时它会消失?