Skip to content

ele.inside()

eles.inside — Collection > Metadata and identity. Cytoscape.js signatures, parameters and return contract.

eles.inside — Collection › Metadata and identity

Preview · Collection › Metadata and identity

Read in the complete API reference · All API members

// Whether the first element is still in the graph — the complement of removed()
ele.inside(): boolean

Whether the first element is still in the graph — the complement of removed().

Returns boolean

true when the element is live

Example

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

Example graph and handle setup