Skip to main content

Popover

Function Popover 

Source
pub fn Popover<'a>(open: bool) -> PopoverScope<'a>
Expand description

A floating box of any content attached to its anchor.

The anchor is always drawn. The content is drawn only while open is true, and open is the application’s: pressing outside the box or pressing Escape calls on_dismiss once and changes nothing, so the handler is where the application closes it or keeps it open to ask about unsaved work.

The Renderer places the box. It opens on the side placement names, lined up with the edge align names, and it moves to the opposite side or slides along the edge when it would otherwise leave the window.

modifier belongs to the floating box, not to the anchor: a shape, a border, a shadow or a material given there replaces the design system’s for this box.