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

    Class WorkbenchDialog<R>Abstract

    Handle to interact with a dialog opened via WorkbenchDialogService.

    The dialog microfrontend can inject this handle to interact with the dialog, such as setting the title, reading parameters, or closing it.

    • WorkbenchDialogCapability
    • WorkbenchDialogService

    Type Parameters

    • R = unknown
    Index

    Constructors

    Properties

    Capability of the microfrontend loaded into this dialog.

    focused$: Observable<boolean>

    Indicates whether this dialog has the focus.

    id: `dialog.${string}`

    Represents the identity of this dialog.

    params: Map<string, unknown>

    Parameters as passed by the dialog opener.

    Methods

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

      Parameters

      • Optionalresult: Error | R

      Returns void

    • Sets the title of the dialog.

      Can be text or a translation key. A translation key starts with the percent symbol (%) and may include parameters in matrix notation for text interpolation.

      Parameters

      • title: string

      Returns void

    • Sets the title of the dialog.

      Parameters

      • title: Observable<string>

      Returns void

      since version 1.0.0-beta.31. To migrate, pass a translatable and provide the text using a text provider registered in WorkbenchClient.registerTextProvider.

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

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

      Returns void

      WorkbenchDialogCapability.properties.showSplash