DEV Community


Posted on

Qiscus Chat Widget: Use a Custom Trigger Button

Qiscus Widget already give you a trigger button like shown below:
trigger button

But if you ever have a case where you need to use your own button, you could do that by following this procedure:

  • We need to hide the original qiscus button
.qcw-trigger-btn { display: none !important; }
  • We need to have the replacement button trigger the click event for the original hidden button.
   .addEventListener('click', function() {

If you need a working example, refer to this codesandbox.

Top comments (0)