View Full Version : Event when body is masked

14 Aug 2014, 2:12 PM
I have an application which uses modal dialogs. I was wondering if there is an event that I can listen to for when the mask is shown. I would expect it to be something like an
onmask event on the body element. I have searched to docs and done many Google searches, but I have not found an answer. Is there a way that this can be done?

Note: I do not want to use the
beforeshow event because this is a shared component across multiple applications.

17 Aug 2014, 8:54 PM

I'm afraid there isn't an event quite like what you're looking for that fires when a modal window is shown. I suspect you'll need to use the beforeshow or show event and interrogate the environment / application that the component is launched within to determine the handle behavior if the listener is set on the component itself.