This event is emitted before a layer is accepted.
The event is emitted on the element of the layer that is about to close.
The layer that is about to close.
The overlay's acceptance value.
Listeners may replace or mutate this value.
The element that is causing the layer to close.
undefined if the overlay is not closing by a user interacting with an element.
The server response that is causing this overlay to close.
undefined if the overlay is not closing in reaction to a server response.
Prevents the overlay from closing.