Skip to product menu
Skip to main content

setTabOrder()

This API allows you to change the order of the tabs in the SalesIQ SDK inside your mobile app.

Note: By default, the first tab will be conversation and followed by the Knowledge Base.
The enum value for the FAQ has been deprecated in version 7.0.0. Instead, use KNOWLEDGE_BASE enum value.

Syntax

CopiedZohoSalesIQ.setTabOrder(ZohoSalesIQ.Tab... tabOrder);

Example

The below sample snippet, the Conversations will be the first tab followed by the Knowledge base tab. 

CopiedZohoSalesIQ.setTabOrder(ZohoSalesIQ.Tab.CONVERSATIONS, 
ZohoSalesIQ.Tab.KNOWLEDGE_BASE);

The below snippet allows to set the visibility of tabs in the SalesIQ chat window. If any of the tab's visibility is set as 'false', that tab will be hidden even when mentioned in the setTabOrder API. If the tab's visibility is set as 'true,' then the tab will be shown at the last, even when not mentioned in the setTabOrder API.

CopiedZohoSalesIQ.KnowledgeBase.setVisibility(ZohoSalesIQ.Resource.ARTICLES, true/false);
ZohoSalesIQ.setConversationVisibility(true/false);