如何在Bot Framework网络聊天中删除iframe的标题 [英] how to remove the title of the iframe in bot framework web chat
问题描述
通过为我的机器人注册iFrame,该机器人使用了Microsoft机器人框架.现在,我需要将该机器人的标题从聊天"中删除/更改为另一个自定义标题.
我该怎么做?
谢谢.
在使用iFrame时,如果没有"hacks"(例如使用CSS覆盖修改DOM),则无法编辑标题.但是,您不必像其他答案中所建议的那样编辑/创建WebChat代码本身.可以使用 ChatProps 传递自定义标题/空标题.. >
看看在您自己的网站上包含WebChat .然后传递chatTitle
参数将标题更改为您的首选项.
聊天标题规则:
- 传递了undefined或true,我们将显示带有默认文本(区分区域设置)的标题
传递了- false(或除未定义之外为假),我们将删除标头
- 传递了一个字符串,我们将显示带有文本的标题
I got the iFrame for my bot that uses Microsoft bot framework by registering the bot with them. Now, I need to remove/change the title of that bot from "chat" to another custom one.
How can I do this?
Thanks in advance.
It isn't possible to edit the title when you use the iFrame without 'hacks' like modifying the DOM with CSS overrides. However you don't have to edit / fork the WebChat code itself, as proposed in other answers. It is possible to pass a custom title / empty title using ChatProps.
Have a look at the possibilities to include the WebChat on your own website. Then pass the chatTitle
parameter to change the title to your preference.
Rules for chatTitle:
- undefined or true is passed, we will show the header with default text (locale-sensitive)
- false (or falsy except undefined) is passed, we will remove the header
- a string is passed, we will show the header with the text
这篇关于如何在Bot Framework网络聊天中删除iframe的标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!