Skip to content

event.type

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

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

Preview · Events › Event object › Payload and state

Read in the complete API reference · All API members

// the event type, e.g
event.type: string

the event type, e.g. 'tap' — never namespaced

Returns string

Example

console.log(event.type); // "example"

Example graph and handle setup