Widget control
Methods to programmatically control the chat widget's visibility and state.
userengage('widget.hide')
Completely hides the widget launcher button.
userengage('widget.hide');
userengage('widget.show')
Shows the widget launcher button (after it was hidden).
userengage('widget.show');
userengage('widget.open')
Expands/opens the chat window.
userengage('widget.open');
userengage('widget.close')
Closes/minimizes the chat window.
userengage('widget.close');
UE.destroy()
Completely removes the widget instance from the DOM.
UE.destroy();
For detailed widget state management, see Widget state. To remove the widget entirely, see Destroying the widget.