Listeners and Events
Glyph loading
This function triggers only when Glyph Chat is fully loaded. Once it's up, you'll be able to use the methods below.
function onGlyphChatApiReady() {
// Code after Glyph fully loaded
}
document.addEventListener("glyphChat-ready", onGlyphChatApiReady);
Events list
Widget have other events using which you can subscribe with a listener.
| Event | Triggers when |
|---|---|
| ready | Glyph is fully loaded |
| open | The chat window is open |
| close | The chat window is closed |