Edit this page

up.layer up:layer:accept
DOM event

This event is emitted before a layer is accepted.

The event is emitted on the element of the layer that is about to close.


event.layer up.Layer

The layer that is about to close.

[event.value] Element optional

The overlay's acceptance value.

Listeners may replace or mutate this value.

[event.origin] Element optional

The element that is causing the layer to close.


Event listeners may call this method to prevent the overlay from closing.

This website uses cookies to improve usability and analyze traffic.
I accept or learn more