Skip to content

API reference

cy.autounselectify — Core > Interaction controls. Cytoscape.js signatures, parameters and return contract.

cy.autounselectify — Core › Interaction controls

Preview · Core › Interaction controls

Read in the complete API reference · All API members

#cy.autounselectify()

// Read whether every element is unselectable regardless of its own selectable flag
cy.autounselectify(): boolean

Read whether every element is unselectable regardless of its own selectable flag. Programmatic select() still applies.

Returns boolean

the current autounselectify value

Example

console.log(cy.autounselectify()); // false

Example graph and handle setup

#cy.autounselectify(bool)

// Set whether every element is unselectable regardless of its own selectable flag
cy.autounselectify(bool: boolean): this

Set whether every element is unselectable regardless of its own selectable flag. Programmatic select() still applies.

Parameters
NameDescription
bool: boolean

the new setting

Returns this

this core, for chaining

Example

const result = cy.autounselectify(false);
console.log(result === cy); // true

Example graph and handle setup