A panel that contains a webview.
A panel that contains a webview.
(active? webview-panel)
Whether the panel is active (focused by the user).
Whether the panel is active (focused by the user).
(dispose webview-panel)
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: any
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:** `any`
(icon-path webview-panel)
Icon for the panel shown in UI.
Icon for the panel shown in UI.
(on-did-change-view-state webview-panel)
(on-did-change-view-state webview-panel listener)
(on-did-change-view-state webview-panel listener this-args)
(on-did-change-view-state webview-panel listener this-args disposables)
Fired when the panel's view state changes.
Parameters:
listener
: (e: T) => any
- The listener function will be called when the event happens.this-args
: any
- The this
-argument which will be used when calling the event listener.disposables
: Disposable[] | undefined
- An array to which a {@link Disposable } will be added.Returns: Disposable
- A disposable which unsubscribes the event listener.
Fired when the panel's view state changes. **Parameters:** - `listener`: `(e: T) => any` - The listener function will be called when the event happens. - `this-args`: `any` - The `this`-argument which will be used when calling the event listener. - `disposables`: `Disposable[] | undefined` - An array to which a {@link Disposable } will be added. **Returns:** `Disposable` - A disposable which unsubscribes the event listener.
(on-did-dispose webview-panel)
(on-did-dispose webview-panel listener)
(on-did-dispose webview-panel listener this-args)
(on-did-dispose webview-panel listener this-args disposables)
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.
Parameters:
listener
: (e: T) => any
- The listener function will be called when the event happens.this-args
: any
- The this
-argument which will be used when calling the event listener.disposables
: Disposable[] | undefined
- An array to which a {@link Disposable } will be added.Returns: Disposable
- A disposable which unsubscribes the event listener.
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. **Parameters:** - `listener`: `(e: T) => any` - The listener function will be called when the event happens. - `this-args`: `any` - The `this`-argument which will be used when calling the event listener. - `disposables`: `Disposable[] | undefined` - An array to which a {@link Disposable } will be added. **Returns:** `Disposable` - A disposable which unsubscribes the event listener.
(options webview-panel)
Content settings for the webview panel.
Content settings for the webview panel.
(reveal webview-panel)
(reveal webview-panel view-column)
(reveal webview-panel view-column preserve-focus?)
Show the webview panel in a given column.
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:
view-column
: ViewColumn | undefined
- View column to show the panel in. Shows in the current viewColumn
if undefined.preserve-focus?
: boolean | undefined
- When true
, the webview will not take focus.Returns: void
Show the webview panel in a given column. 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:** - `view-column`: `ViewColumn | undefined` - View column to show the panel in. Shows in the current `viewColumn` if undefined. - `preserve-focus?`: `boolean | undefined` - When `true`, the webview will not take focus. **Returns:** `void`
(set-icon-path! webview-panel value)
Icon for the panel shown in UI.
Icon for the panel shown in UI.
(set-title! webview-panel value)
Title of the panel shown in UI.
Title of the panel shown in UI.
(title webview-panel)
Title of the panel shown in UI.
Title of the panel shown in UI.
(view-column webview-panel)
Editor position of the panel. This property is only set if the webview is in one of the editor view columns.
Editor position of the panel. This property is only set if the webview is in one of the editor view columns.
(view-type webview-panel)
Identifies the type of the webview panel, such as 'markdown.preview'
.
Identifies the type of the webview panel, such as `'markdown.preview'`.
(visible? webview-panel)
Whether the panel is visible.
Whether the panel is visible.
(webview webview-panel)
{@linkcode Webview } belonging to the panel.
{@linkcode Webview } belonging to the panel.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close