Control Panel
  • 17 Jun 2022
  • 1 Minute to read
  • Dark
    Light

Control Panel

  • Dark
    Light

Article summary

How to use API

First of all, you need to read this guide to known how to embed the Control Panel into your web system, and then you can call the following APIs according to your requirements.

APIs

Actions

  1. goto: change Comm100 Control Panel Page path.

    • Params

      NametypeDescription
      pagePathstringThe path of the page to redirect to. You can find the all page path from here.
    • Response

      No Response

    • Example

      // When control completes the initialization, redirect to the live chat chat source reporting page after five seconds
      controlPanel.init().then((cp) => {
        setTimeout(function() {
          cp.do("goto", "/reporting/livechat/chatsource/chatsourcebytime/");
        }, 5000);
      });
      

      Click here to get more information about setTimeout.


Was this article helpful?