GlowModal events

I'm having trouble figuring out how to attach to any of the events published by GlowModal. I'm looking at the documentation for the component, and can't see how I'd hook onto glowModalOpened or glowModalClosed. I've tried defining them in the initialisation like this;

And also subscribing through the Verint JS event messaging system, like this;

Does anyone have any pointers on how I attach to the events from GlowModal?

Thanks,

Matt.

Parents
  • Former Member
    0 Former Member

    This is the only usage I see in our code, but it should help.

  • Hmm, good idea.. that's a variant I hadn't tried.. unfortunately nothing happens. Did you try it from the DevTools JS console like this?

Reply
  • Hmm, good idea.. that's a variant I hadn't tried.. unfortunately nothing happens. Did you try it from the DevTools JS console like this?

Children
  • Former Member
    +1 Former Member in reply to Matt

    Created a widget with this as its content.  Shows Opened! in the console once it has been added to a page.

  • Huh. Interesting. So that doesn't behave the same on our site.. but I can see it work on yours (this site), even if I paste the code into the console. Odd. I'll see whether I can figure out why.. it's not a big deal, but just one of those backburner things Wink