setTitle()

Note: This API is supported from version 8.1.0-beta01.

The setTitle() API customizes the title of the chat widget in the conversation page based on the brand or chat department's online/offline status.

Parameters: 

  • online (String) - The text to display when the status is online.
  • offline (String) - The text to display when the status is offline.

Syntax

Copiedvoid setTitle(String online, String offline);

Example

CopiedZohoSalesIQ.Chat.setTitle("Chat with us now", "Leave us a message");
CopiedZohoSalesIQ.Chat.setTitle("Chat with us now", "Leave us a message")