CreatorAPI.on
Registers an event listener for plugin events
CreatorAPI.on() method
Registers an event listener for plugin events
Signature:
on<T extends CreatorEventName>(type: T, callback: (data: CreatorEventData<T>) => void): void;Parameters
Parameter | Type | Description |
|---|---|---|
type | T | The event type to listen for |
callback | (data: CreatorEventData<T>) => void | Function called when the event fires |
Returns:
void
Example
creator.on("selection:nodes", callback);
creator.on("change:theme", (theme) => {
/* ... */
});Last updated: August 13, 2026 at 9:17 AMEdit this page