EventDefinition
Defines an event that a plugin can emit. Other plugins can subscribe to these events via the Event Bus.
Example
Section titled “Example”// In manifestevents: [ { type: 'filter-change', description: 'Emitted when filter criteria change', },]
// In plugin class - emitthis.emitPluginEvent('filter-change', { field: 'name', value: 'Alice' });
// In another plugin - subscribethis.on('filter-change', (detail) => console.log('Filter changed:', detail));Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
type | string | The event type identifier (e.g., ‘filter-change’, ‘selection-change’). Used when emitting and subscribing to events. |
description? | string | Human-readable description of what the event represents. |
cancelable? | boolean | Whether this event is cancelable via event.preventDefault(). |
Property Details
Section titled “Property Details”cancelable
Section titled “cancelable”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