Skip to content

EventDefinition

Defines an event that a plugin can emit. Other plugins can subscribe to these events via the Event Bus.

// In manifest
events: [
{
type: 'filter-change',
description: 'Emitted when filter criteria change',
},
]
// In plugin class - emit
this.emitPluginEvent('filter-change', { field: 'name', value: 'Alice' });
// In another plugin - subscribe
this.on('filter-change', (detail) => console.log('Filter changed:', detail));
PropertyTypeDescription
typestringThe event type identifier (e.g., ‘filter-change’, ‘selection-change’). Used when emitting and subscribing to events.
description?stringHuman-readable description of what the event represents.
cancelable?booleanWhether this event is cancelable via event.preventDefault().

Default: false


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