When shown, hidden and destroyed, the instance will emit certain events. It is possible to subscribe to these with the
on() method which will receive the dialog container element and the event object (if any).
The event object can be used to know which trigger (opener / closer) has been used in case of a
You can unregister these handlers with the