Skip to content

ElectronBrowserView

Unofficial

Electron BrowserView for embedding additional web content in a ElectronBrowserWindow.

Import:

import type { ElectronBrowserView } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export class ElectronBrowserView

Properties

Property Type Description
webContents ElectronWebContents The web contents owned by this view.

Methods

Method Returns Description
getBounds() ElectronRectangle Returns the bounds of this view.
setAutoResize(options) void Configures how the view auto-resizes with its window.
setBackgroundColor(color) void Sets the background color of the view.
setBounds(bounds) void Resizes and moves the view to the supplied bounds relative to the window.

Links to this page: