Skip to content

eles.unselectify()

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

eles.unselectify — Collection › Selection

Preview · Collection › Selection

Read in the complete API reference · All API members

// Make these elements unselectable
eles.unselectify(): this

Make these elements unselectable. Does not deselect them; call unselect() for that.

Returns this

this collection, for chaining

Example

const node = cy.getElementById('a');
node.unselectify();
console.log(node.selectable()); // false

Example graph and handle setup