Optional ReadonlycaptureOptional ReadonlyelementsElements treated as "inside" by the default contains check.
Optional ReadonlyescapeDismiss on Escape (default true).
Optional ReadonlyfocusDismiss when focus moves to an element outside the layer (default
false): the "slide back on focus loss" behaviour.
Optional ReadonlyisOptional ReadonlyisWhether a pointer event is inside the layer. Defaults to a DOM
contains check against DismissableLayerOptions.elements.
Provide this for geometry-based hit testing (e.g. when the visible
content is a sibling overlay stacked on top of the layer).
Optional ReadonlykeysExtra keys that also dismiss (e.g. 'Enter').
Optional ReadonlynowClock source for the grace window. Defaults to Date.now.
ReadonlyonInvoked when any enabled dismiss signal fires.
Optional ReadonlyonA pointerdown landed inside the layer (not a dismissal). Use it to mark interaction (e.g. make a transient layer sticky).
Optional ReadonlyoutsideDismiss on a pointerdown outside the layer (default true).
Optional ReadonlypointerIgnore outside-pointerdowns for this many ms after opening. Covers the gesture that opened the layer (e.g. a touch long-press) dispatching a follow-up pointerdown just outside it.
Optional ReadonlyresizeDismiss on window resize, skipping touch-driven resizes (default
false).
Optional ReadonlywindowWindow to listen on. Pass the popout window for popout-hosted layers.
Defaults to the global window.
Listen in the capture phase (default
false). Use capture when the layer must see the event before content handlers stop its propagation.