Theia API Documentation v1.77.0
    Preparing search index...

    Interface SecondaryWindowServiceExperimental

    Service for opening new secondary windows to contain widgets extracted from the application shell.

    The functionality provided by this service and its implementation is still under development. Use with caution.

    interface SecondaryWindowService {
        beforeWidgetRestore: Event<[Widget, Window]>;
        onWindowClosed: Event<Window>;
        onWindowLoaded: Event<Window>;
        onWindowOpened: Event<Window>;
        createSecondaryWindow(
            widget: ExtractableWidget,
            shell: ApplicationShell,
            options?: SecondaryWindowOptions,
        ): Window | SecondaryWindow | undefined;
        focus(win: Window): void;
        getWindows(): Window[];
        restoreWidget(
            widget: Widget,
            secondaryWindow: Window,
            shell: ApplicationShell,
        ): Promise<void>;
    }

    Implemented by

    Index
    beforeWidgetRestore: Event<[Widget, Window]>
    onWindowClosed: Event<Window>
    onWindowLoaded: Event<Window>

    Emitted once a secondary window's final document has finished loading. Listeners can safely modify the window's document, unlike with onWindowOpened: at that point the window still shows the initial about:blank document, and anything added to it is discarded when the final document replaces it.

    onWindowOpened: Event<Window>