Skip to content

ele.active()

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

eles.active — 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 in the transient pressed ("active") state
ele.active(): boolean

Whether the first element is in the transient pressed ("active") state.

Returns boolean

the pressed flag the pointer layer sets while a press is held — transient interaction state, not a persisted property

Example

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

Example graph and handle setup