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

PropertyTypeDescription
webContentsElectronWebContentsThe web contents owned by this view.

Methods

MethodReturnsDescription
getBounds()ElectronRectangleReturns the bounds of this view.
setAutoResize(options)voidConfigures how the view auto-resizes with its window.
setBackgroundColor(color)voidSets the background color of the view.
setBounds(bounds)voidResizes and moves the view to the supplied bounds relative to the window.

Links to this page: