Back to the changelog

Show or hide the widget from code

Call show and hide from your own scripts and set where the widget sits above the rest of your page.

The widget puts itself on the page as window.__voicegram__ with show, hide, toggle, and setZIndex methods you can call from your own scripts. The stacking order can also be set from the widget's settings page on any plan, which matters whenever the bubble ends up under or over a mobile menu, a cookie bar, or a modal of your own. The default stacking value was lowered so the bubble no longer sits above everything else on your page as a matter of course.

Ricardo Lopez
Founder & CEO