Auto-opening the Communication Panel

Hi everyone!
 

We embed a custom Angular Web-phone inside the standard Communication Panel. The panel must be expanded right after user login and on every page reload, otherwise the phone widget cannot initialise incoming/outgoing calls.

  1. Is there an out-of-the-box way to auto-expand the Communication Panel right after user authorization (and after every reload)?
  2. Is there any supported API to programmatically open the panel from a custom Angular component located on the same page? (when the component receives a call we have to reopen the communication panel)

Any best-practice, hints or code snippets would be highly appreciated. Thanks!

Like 1

Like

1 comments

You can fire a "crt.OpenSidebarRequest" request and provide the code of the sidebar to indicate which sidebar to open. 

handlerChain.process({
    type: 'crt.OpenSidebarRequest',
    sidebarCode: SOME_SIDEBAR_CODE,
    $context: {}
});

You can see this request plus others related to the sidebar here: https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/platform-customization/freedom-ui/sidebar/overview 

Ryan

Show all comments