Popup Overlay Spec
class PopupOverlaySpec(val anchorId: String, val alignment: PopupAlignment = PopupAlignment.BelowStart, val overflowPolicy: PopupOverflowPolicy = PopupOverflowPolicy.FlipThenClamp, val windowMargin: Int = 0, val dismissOnClickOutside: Boolean = true, val focusable: Boolean = true, val offsetX: Int = 0, val offsetY: Int = 0, val onDismissRequest: () -> Unit? = null)(source)
Describes platform-neutral placement, dismissal, and focus behavior for one popup.
Callback identity does not participate in equality. Recomposition therefore updates a platform popup only when placement or interaction policy changes.
Constructors
Link copied to clipboard
constructor(anchorId: String, alignment: PopupAlignment = PopupAlignment.BelowStart, overflowPolicy: PopupOverflowPolicy = PopupOverflowPolicy.FlipThenClamp, windowMargin: Int = 0, dismissOnClickOutside: Boolean = true, focusable: Boolean = true, offsetX: Int = 0, offsetY: Int = 0, onDismissRequest: () -> Unit? = null)
Properties
Link copied to clipboard
preferred placement relative to the anchor
Link copied to clipboard
whether an outside pointer event requests dismissal
Link copied to clipboard
invoked when the platform requests dismissal; the owner must remove the declaration
Link copied to clipboard
correction applied when the popup exceeds the viewport
Link copied to clipboard
minimum requested distance from viewport edges, in host coordinate units