Skip to content

PluginDependency

Declares a dependency on another plugin.

export class UndoRedoPlugin extends BaseGridPlugin {
static readonly dependencies: PluginDependency[] = [
{ name: 'editing', required: true },
];
}
PropertyTypeDescription
namestringThe name of the required plugin (matches the plugin’s name property). Use string names for loose coupling - avoids static imports.
required?booleanWhether this dependency is required (hard) or optional (soft). - true: Plugin cannot function without it. Throws error if missing. - false: Plugin works with reduced functionality. Logs info if missing.
reason?stringHuman-readable reason for this dependency. Shown in error/info messages to help users understand why.

Default: true


"UndoRedoPlugin needs EditingPlugin to track cell edits"

AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt