Skip to main content

ModelEventCallback

ModelEventCallback<T, E> = (p) => any

Callback for a model event.

Type Parameters​

T​

T = any

Maps the type of object the event pertains to - a Node, Group, Edge or Port.

E​

E extends Event = Event

Maps the event class you expect as a return value. Providing this helps you to type things more strictly.

Parameters​

p​

ModelEventCallbackPayload<T, E>

Returns​

any