Webix Message box onClick/onHide function

Hello, is it possible to react on click/hide event for webix message box?
E.g. I want to play sound when I click on message to close it.

Hello @Dzoks,
As a solution, you can override onclick event. For this you need to get a specific message instance through webix.message.pull, which stores all initialized messages. The keys in this pool will be id, which are set on init:

webix.message.pull.customsound.onclick = function() {
  playSound();
  webix.message.hide("customsound"); 
}; 

Please check the next snippet:
https://snippet.webix.com/auwpe2ja

Thank you. It works great. I already solved it using similar workaround, but this also works as well.