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

    A panel that contains a webview.

    Implements

    Index

    Constructors

    Properties

    onDidChangeViewState: Event<WebviewPanelOnDidChangeViewStateEvent> = ...

    Fired when the panel's view state changes.

    onDidChangeViewStateEmitter: Emitter<WebviewPanelOnDidChangeViewStateEvent> = ...
    onDidDispose: Event<void> = ...

    Fired when the panel is disposed.

    This may be because the user closed the panel or because .dispose() was called on it.

    Trying to use the panel after it has been disposed throws an exception.

    onDisposeEmitter: Emitter<void> = ...

    Accessors

    Methods

    • Dispose of the webview panel.

      This closes the panel if it showing and disposes of the resources owned by the webview. Webview panels are also disposed when the user closes the webview panel. Both cases fire the onDispose event.

      Returns void

    • Show the webview panel according to a given options.

      A webview panel may only show in a single column at a time. If it is already showing, this method moves it to a new column.

      Parameters

      • Optionalarg0: ViewColumn | WebviewPanelTargetArea

        target area where webview panel will be resided. Shows in the 'WebviewPanelTargetArea.Main' area if undefined.

      • Optionalarg1: boolean | ViewColumn

        View column to show the panel in. Shows in the current viewColumn if undefined.

      • Optionalarg2: boolean

        When true, the webview will not take focus.

      Returns void