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).
Classes
Section titled “Classes”| 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. |
Functions
Section titled “Functions”| 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. |