Skip to content

ele.grabbed()

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

eles.grabbed — Collection › Grab, lock and pannability

Preview · Collection › Grab, lock and pannability

Read in the complete API reference · All API members

// Whether the first element is currently held by a drag gesture
ele.grabbed(): boolean

Whether the first element is currently held by a drag gesture.

Returns boolean

true while grabbed

Example

console.log(eles.grabbed()); // false

Example graph and handle setup