Skip to content

eles.select()

eles.select — Collection > Selection. Cytoscape.js signatures, parameters and return contract.

eles.select — Collection › Selection

Preview · Collection › Selection

Read in the complete API reference · All API members

// Select every selectable element, emitting select for each one that changed
eles.select(): this

Select every selectable element, emitting a select event for each one that changed. Unselectable elements are skipped.

Returns this

this collection, for chaining

Example

const node = cy.getElementById('a');
node.select();
console.log(node.selected()); // true

Example graph and handle setup