Skip to content

ele.pannable()

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

eles.pannable — Collection › Grab, lock and pannability

Preview · Collection › Grab, lock and pannability

Read in the complete API reference · All API members

// Whether dragging the first element pans the graph instead of grabbing it
ele.pannable(): boolean

Whether dragging the first element pans the graph instead of grabbing it.

Returns boolean

the raw pannable flag; because pannable overrides grabbable, a true here forces grabbable() false

Example

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

Example graph and handle setup