Skip to content

ele.isChild()

eles.isChild — Collection > Compound nodes. Cytoscape.js signatures, parameters and return contract.

eles.isChild — Collection › Compound nodes

Preview · Collection › Compound nodes

Read in the complete API reference · All API members

// Whether the first element is a node with a parent
ele.isChild(): boolean

Whether the first element is a node with a parent.

Returns boolean

true for a node with a parent; false for edges and removed elements

Example

console.log(eles.isChild()); // false

Example graph and handle setup