Add an event listener
Event type
Listener callback
Disable an add-in
ID of the add-in to disable
Dispose of the registry and all add-ins
Enable an add-in
ID of the add-in to enable
Export data from all enabled add-ins
Get all registered add-ins
Get context menu items from all enabled add-ins for an object
Selected object
Get all enabled add-ins
Get toolbar buttons from all enabled add-ins
Route a message to the appropriate add-in
Message type (e.g., "addin:sticky-notes")
Message data
ID of the user who sent the message
Route object added event to enabled add-ins
Added object
Route object loaded event to enabled add-ins
Loaded object
Route object modified event to enabled add-ins
Modified object
Route object removed event to enabled add-ins
Removed object
Route selection changed event to enabled add-ins
Selected objects
Import data to all enabled add-ins
Data to import (keyed by add-in ID)
Check if an add-in is enabled
Add-in ID
Remove an event listener
Event type
Listener callback
Set the canvas for all add-ins
Fabric.js canvas instance
Set the whiteboard context for all add-ins
Whiteboard context
Unregister an add-in
ID of the add-in to unregister
WhiteboardAddinRegistry - Manages add-in lifecycle and event routing
Example