Skip to content

plugin/plugin

Base class for Obsidian plugins using a component-based architecture.

PluginBase registers universal components (context, i18n, error handling, abort signal, lifecycle events, debug).

Class Description
PluginBase Base class for creating Obsidian plugins with a component-based architecture. Registers universal components automatically. Subclasses add or replace components via removeChild / addChild.
Function Description
reloadPlugin Reloads the specified plugin by disabling and then re-enabling it.
showErrorAndDisablePlugin Displays an error message as a notice, logs it to the console, and disables the specified plugin.