Skip to content

ele.interactive()

eles.interactive — Collection > Style. Cytoscape.js signatures, parameters and return contract.

eles.interactive — Collection › Style

Preview · Collection › Style

Read in the complete API reference · All API members

// Whether the element can be interacted with: visible and not pointer-transparent (events: 'no')
ele.interactive(): boolean

Whether the element can be interacted with: visible and not pointer-transparent (events: 'no').

Returns boolean

whether any pointer path will resolve to this element; it rides visible(), so an element hidden either way is inert

Example

console.log(eles.interactive()); // true

Example graph and handle setup