iflychat.renderLabelInChatWindow
iFlyChat JavaScript SDK has a function named 'renderLabelInChatWindow' which can be used to add custom label to chat window. You may use the function in the following manner:
1
iflychat.renderLabelInChatWindow({
2
3
id: 'c-0', /* id of the chat room or user */
4
position: 'above-chat-content', /* position of the label */
5
content: 'This is a custom header in the chat window' /* label content */
6
7
});
Copied!
This function takes a JS object as parameter which should have following properties:
Property
Description
id
id of the chat room or window
position
position of the label inside chat window. Possible values are above-chat-content or below-chat-content
content
content of the label
Last modified 1yr ago
Copy link