Skip to content

PluginGateComponentConstructorParams

Parameters for the PluginGateComponent constructor.

Import:

import type { PluginGateComponentConstructorParams } from 'obsidian-dev-utils/obsidian/components/plugin-gate-component';

Signature:

export interface PluginGateComponentConstructorParams

Properties

PropertyTypeDescription
conflictsreadonly PluginConflict[]The conflicts to enforce. An empty list means the plugin refuses to run beside nothing.
dependenciesreadonly PluginDependency[]The dependencies to enforce. An empty list means the plugin depends on nothing, and its feature surface loads immediately.
pluginPluginThe host plugin — the one declaring the dependencies and conflicts.
pluginNoticeComponentPluginNoticeComponentThe host plugin's notice component, used to say what is missing, what is in the way, and what changed.

Methods

MethodReturnsDescription
loadFeatureSurface(this)Promise<void>Loads the host plugin's feature surface. Called once every dependency is satisfied and no blocking conflict holds, and again after a gate that had closed opens back up.
unloadFeatureSurface(this)voidUnloads the host plugin's feature surface. Called when a gate that had been open closes.