Skip to content

eles.ungrabify()

eles.ungrabify — Collection > Grab, lock and pannability. Cytoscape.js signatures, parameters and return contract.

eles.ungrabify — Collection › Grab, lock and pannability

Preview · Collection › Grab, lock and pannability

Read in the complete API reference · All API members

// Make these elements ungrabbable — the user can no longer drag them, while programmatic position writes still apply
eles.ungrabify(): this

Make these elements ungrabbable — the user can no longer drag them, while programmatic position writes still apply.

Returns this

this collection, for chaining

Example

const node = cy.getElementById('a');
node.ungrabify();
console.log(node.grabbable()); // false

Example graph and handle setup