Genesys Engage on-premises

 View Only

Discussion Thread View

Adding a custom HTML using WindowManager (Genesys Widgets) not working

  • 1.  Adding a custom HTML using WindowManager (Genesys Widgets) not working

    Posted 08-25-2020 17:57
    Edited by Akhil Khandelwal 08-25-2020 18:01
    ​We are trying to add a WindowManager for the "Dock View" group. Our Purpose is to add a new HTML UI next to the ongoing Chat widget window at the bottom right corner. We have tried with these Widgets versions: v9.0.017.06, v9.0.015.19 and v9.0.010.04

    On the Html, we added a button to call the addWindowManager() JS function, it add the HTML UI on the webpage but on the Top left instead of bottom right corner. See the Code used below. 

    var windowManagerPlugin;
    window._genesys.widgets.extensions["WindowManagerExtension"] = function($, CXBus, Common){

      console.log("*** Creating WindowManagerPlugin now...");
      windowManagerPlugin = CXBus.registerPlugin('WindowManagerPlugin');

    };

    function addWindowManager(){

     windowManagerPlugin.command('WindowManager.registerDockView', {

      html: '<div>Template</div>'

     }).done(function(e){
      // WindowManager registered a dockView successfully

     }).fail(function(e){
     
      // WindowManager failed to register a dock view
     
     });
     
    };
    Webpage showing custom HTML DIV

    #DigitalChannels

    ------------------------------
    Akhil Khandelwal
    mokSa Technologies India Private Limited.
    ------------------------------


Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources