SCION Workbench Client - v1.0.0-beta.35
    Preparing search index...

    Class WorkbenchPopup<R>Abstract

    A popup is a visual workbench component for displaying content above other content.

    If a microfrontend lives in the context of a workbench popup, regardless of its embedding level, it can inject an instance of this class to interact with the workbench popup, such as reading passed parameters or closing the popup.

    You can report preferred popup size using @scion/microfrontend-platform!PreferredSizeService. Typically, you would subscribe to size changes of the microfrontend's primary content and report it. As a convenience, @scion/microfrontend-platform!PreferredSizeService provides API to pass an element for automatic dimension monitoring. If your content can grow and shrink, e.g., if using expandable panels, consider positioning primary content out of the document flow, that is, setting its position to absolute. This way, you give it infinite space so that it can always be rendered at its preferred size.

    Beans.get(PreferredSizeService).fromDimension(<HTMLElement>);
    

    Note that the microfrontend may take some time to load, causing the popup to flicker when opened. Therefore, for fixed-sized popups, consider declaring the popup size in the popup capability.

    Type Parameters

    • R = unknown
    Index

    Constructors

    Properties

    Capability that represents the microfrontend loaded into this workbench popup.

    focused$: Observable<boolean>

    Indicates whether this popup has the focus.

    id: `popup.${string}`

    Represents the identity of this popup.

    params: Map<string, any>

    Parameters including qualifier entries as passed for navigation by the popup opener.

    Provides information about the context in which this popup was opened.

    since version 1.0.0-beta.34. Marked for removal. No replacement. Instead, add a parameter to the popup capability for the popup opener to pass required referrer information.

    Methods

    • Closes the popup. Optionally, pass a result or an error to the popup opener.

      Parameters

      • Optionalresult: Error | R

      Returns void

    • Signals readiness, notifying the workbench that this popup has completed initialization.

      If showSplash is set to true on the popup capability, the workbench displays a splash until the popup microfrontend signals readiness.

      Returns void

      WorkbenchPopupCapability.properties.showSplash