Skip to content

ele.insideCollapsed()

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

eles.insideCollapsed — Collection › Compound nodes

Preview · Collection › Compound nodes

Read in the complete API reference · All API members

// Whether the first live node has a collapsed strict ancestor
ele.insideCollapsed(): boolean

Whether the first live node has a collapsed strict ancestor. The collapsed parent itself answers false.

Returns boolean

true when the node is a descendant of a collapsed parent

Example

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

Example graph and handle setup