CreatorAPI.on
Registers an event listener for events
CreatorAPI.on() method
Registers an event listener for 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);Last updated: October 8, 2026 at 10:45 AMEdit this page