pub struct OverlayRequest {Show 18 fields
pub kind: OverlayKind,
pub id: GlobalElementId,
pub root_name: Option<String>,
pub trigger: Option<GlobalElementId>,
pub dismissable_branches: Vec<GlobalElementId>,
pub consume_outside_pointer_events: bool,
pub disable_outside_pointer_events: bool,
pub close_on_window_focus_lost: bool,
pub close_on_window_resize: bool,
pub open: Option<Model<bool>>,
pub on_open_auto_focus: Option<OnOpenAutoFocus>,
pub on_close_auto_focus: Option<OnCloseAutoFocus>,
pub dismissible_on_dismiss_request: Option<OnDismissRequest>,
pub dismissible_on_pointer_move: Option<OnDismissiblePointerMove>,
pub presence: OverlayPresence,
pub initial_focus: Option<GlobalElementId>,
pub children: Vec<AnyElement>,
pub toast_layer: Option<ToastLayerSpec>,
}Fields§
§kind: OverlayKind§id: GlobalElementId§root_name: Option<String>§trigger: Option<GlobalElementId>§dismissable_branches: Vec<GlobalElementId>Extra subtrees that should be treated as “inside” for DismissableLayer-style dismissal.
This is used to align Radix DismissableLayerBranch outcomes across disjoint subtrees.
consume_outside_pointer_events: boolWhen an outside-press observer is dispatched for this overlay, suppress normal hit-tested pointer-down dispatch to underlay widgets for the same event.
disable_outside_pointer_events: boolWhen true, pointer events outside the overlay subtree should not reach underlay widgets
while the overlay is open (Radix disableOutsidePointerEvents outcome).
close_on_window_focus_lost: boolWhether this overlay should close when the OS window loses focus.
close_on_window_resize: boolWhether this overlay should close when the OS window is resized (or scale factor changes).
open: Option<Model<bool>>§on_open_auto_focus: Option<OnOpenAutoFocus>§on_close_auto_focus: Option<OnCloseAutoFocus>§dismissible_on_dismiss_request: Option<OnDismissRequest>§dismissible_on_pointer_move: Option<OnDismissiblePointerMove>§presence: OverlayPresence§initial_focus: Option<GlobalElementId>§children: Vec<AnyElement>§toast_layer: Option<ToastLayerSpec>Implementations§
Source§impl OverlayRequest
impl OverlayRequest
pub fn dismissible_popover( id: GlobalElementId, trigger: GlobalElementId, open: Model<bool>, presence: OverlayPresence, children: Vec<AnyElement>, ) -> Self
Dismissible overlay with non-click-through outside press behavior.
This matches Radix-aligned “menu-like” overlays where an outside click closes the overlay without activating the underlay (ADR 0069).