Custom Label In Chat Window
Learn how to add a custom label in header or footer inside the chat window
window.iflychatAsyncInit = function() {
// All iFlyChat related code should be defined here
/** iFlyChat Init function **/
iflychat.init({
userlist : {
visible: true
}
});
/** iFlyChat ready event **/
iflychat.on('ready', function() {
var htmlContent = '<div style="padding:2px;">';
htmlContent += 'This is a custom label above the chat window.';
htmlContent += '<div style="color:red;">';
htmlContent += 'You can also customise look and feel.';
htmlContent += '</div>';
htmlContent += '</div>';
iflychat.renderLabelInChatWindow({
id: 'c-0',
position: 'above-chat-content',
content: htmlContent
});
});
};
Last updated