Skip to content

event.cy

event.cy — Events > Event object > Payload and state. Cytoscape.js signatures, parameters and return contract.

event.cy — Events › Event object › Payload and state

Preview · Events › Event object › Payload and state

Read in the complete API reference · All API members

// the core the event was raised on
event.cy: Core<NodeData, EdgeData>

the core the event was raised on

Returns Core<NodeData, EdgeData>

Example

console.log(event.cy === cy); // true

Example graph and handle setup