dansmaculotte / vue-zendesk

Vue.js plugin for Zendesk Web Widget
MIT License
33 stars 18 forks source link

Listen to webWidget events #29

Closed spicy-sauce closed 3 years ago

spicy-sauce commented 3 years ago

Currently (as I understand it), the only event triggered is the loaded custom one. There's no support for the webwidget events, close for example. I had to add this explicitly:

zE("webWidget:on", "close", () => {
  console.log("Closing widget...");
  zE("webWidget", "hide");
});

It would be nice to throw an event once the widget is closed for example with an appropriate callback. What do you think?

rtouze commented 3 years ago

Hi, thank you for your feedback. It would be a nice feature for sure, but I don't think I will add it for now.

rtouze commented 3 years ago

Finally, I need this feature. You'll find it in next release.

rtouze commented 3 years ago

Fixed in 686e333f846371cfcc3cc5b1e0d791cbf9c6d7f7

spicy-sauce commented 3 years ago

Thank you so much!