Skip to content

ele.selectable()

eles.selectable — Collection > Selection. Cytoscape.js signatures, parameters and return contract.

eles.selectable — Collection › Selection

Preview · Collection › Selection

Read in the complete API reference · All API members

// Whether the first element may be selected by the user
ele.selectable(): boolean

Whether the first element may be selected by the user. The graph-wide cy.autounselectify() overrides this for user gestures.

Returns boolean

true when selectable

Example

console.log(eles.selectable()); // true

Example graph and handle setup