Skip to content

eles.hide()

eles.hide — Collection > Visibility and emphasis. Cytoscape.js signatures, parameters and return contract.

eles.hide — Collection › Visibility and emphasis

Preview · Collection › Visibility and emphasis

Read in the complete API reference · All API members

// Hide these elements structurally
eles.hide(): this

Hide these elements structurally. They stop drawing and picking, leave the bounding box and their ancestors' auto-bounds, and their bezier bundles re-fan without them. Descendants of a hidden node are gated too.

Returns this

this collection, for chaining

Example

const node = cy.getElementById('a');
node.hide();
console.log(node.hidden()); // true

Example graph and handle setup