Skip to content

eles.grabify()

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

eles.grabify — Collection › Grab, lock and pannability

Preview · Collection › Grab, lock and pannability

Read in the complete API reference · All API members

// Make these elements grabbable
eles.grabify(): this

Make these elements grabbable.

Returns this

this collection, for chaining

Example

const node = cy.getElementById('a');
node.grabify();
console.log(node.grabbable()); // true

Example graph and handle setup