Skip to content

JsExecutionGlobals

Global variables provided to a JsExecution.

Properties

app

app: App

Reference to the obsidian app (obsidian API).

Defined in

jsEngine/engine/JsExecution.ts:45


component

component: Component

Obsidian component for lifecycle management.

Defined in

jsEngine/engine/JsExecution.ts:53


container

container: undefined | HTMLElement

The container element that the execution can render to. This can be undefined.

Defined in

jsEngine/engine/JsExecution.ts:61


context

context: JsExecutionContext & Record<string, unknown>

The context provided. This can be undefined and extended by other properties.

Defined in

jsEngine/engine/JsExecution.ts:57


engine

engine: API

Reference to this plugins API.

Defined in

jsEngine/engine/JsExecution.ts:49


obsidian

obsidian: __module

The entire obsidian module, e.g. a notice can be constructed like this: new obsidian.Notice('Hello World').

Defined in

jsEngine/engine/JsExecution.ts:65