AbstractAbstract ReadonlycapabilityCapability of the microfrontend loaded into this popup.
Abstract Readonlyfocused$Indicates whether this popup has the focus.
Abstract ReadonlyidIdentity of this popup.
Abstract ReadonlyparamsParameters passed to the microfrontend loaded into the popup.
Abstract ReadonlyreferrerProvides information about the context in which this popup was opened.
AbstractcloseCloses the popup. Optionally, pass a result or an error to the popup opener.
Optionalresult: Error | RAbstractsetSets a result that will be passed to the popup opener when the popup is closed on focus loss CloseStrategy#onFocusLost.
Optionalresult: RAbstractsignal
A popup is a visual workbench element for displaying content above other content. The popup is positioned relative to an anchor based on its preferred alignment. The anchor can be an element or a coordinate.
The microfrontend can inject this handle to interact with the popup.
Popup Size
Configure the popup with a fixed size in WorkbenchPopupCapability.properties.size, or report its intrinsic content size using @scion/microfrontend-platform!PreferredSizeService.
Example: - Reporting the size of a microfrontend
If the content can grow and shrink, e.g., if using expandable panels, position the microfrontend
absoluteto allow infinite space for rendering at its preferred size.Since loading a microfrontend may take time, prefer setting the popup size in the popup capability to avoid flickering when opening the popup.