My Account | Buy CometChat

documentation

toggleModule()

toggleModule() function assists you to dynamically toggle visibility of a module (like Chatrooms, Facebook Fan Page etc.)

The API

The input parameter is the module’s short name i.e. the folder name of the module.

jqcc.cometchat.toggleModule('MODULENAME');

Sample Code

A suggested use of this function is to toggle the Chatrooms module from your webpage.

<a href="javascript:void(0)" onclick="javascript:jqcc.cometchat.toggleModule('chatrooms');">Start/Stop Chatting</a>