closeModule API assists you to dynamically close a module (like Chatrooms, Facebook Fan Page etc.). closeModule API will minimize an open module in standard theme and closes module’s lightbox in Hangout, Facebook and Lite themes.
jqcc.cometchat.closeModule('ModuleName');
<a href="javascript:void(0)" onclick="javascript:jqcc.cometchat.closeModule('chatrooms');">Close Chatrooms</a>
Not finding what you need?
The CometChat team is here to help!