如何自定义Bot Framework网络聊天标题?

时间:2018-09-27 09:50:21

标签: botframework

我将WebChat嵌入到演示页面中并复制了CSS文件,但是我不知道是否要更改网聊的标题吗?

enter image description here

<link href="BotStyle.css" rel="stylesheet" />
<div id="BotChatGoesHere"></div>

<script src="https://cdn.botframework.com/botframework-webchat/latest/botchat.js"></script>

<!-- If you do not want to use Cognitive Services library, comment out the following line -->
<script src="https://cdn.botframework.com/botframework-webchat/latest/CognitiveServices.js"></script>

1 个答案:

答案 0 :(得分:2)

您可以使用javascript或jquery以编程方式更改文本。要么

document.getElementsByClassName("wc-header")[0].innerHTML = "<span>Chat</span>";

$(".wc-header span").innerText = "Hello";