Skip to content

eles.unselect()

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

eles.unselect — Collection › Selection

Preview · Collection › Selection

Read in the complete API reference · All API members

// Deselect every element, emitting unselect for each one that changed
eles.unselect(): this

Deselect every element, emitting an unselect event for each one that changed.

Returns this

this collection, for chaining

Example

const node = cy.getElementById('a');
node.unselect();
console.log(node.selected()); // false

Example graph and handle setup

Also spelled eles.deselect.