Skip to content

cy.options()

cy.options — Core > Metadata and environment. Cytoscape.js signatures, parameters and return contract.

cy.options — Core › Metadata and environment

Preview · Core › Metadata and environment

Read in the complete API reference · All API members

// The options the instance was constructed with
cy.options(): CytoscapeOptions<NodeData, EdgeData>

The options the instance was constructed with.

Returns CytoscapeOptions<NodeData, EdgeData>

the caller's own options object, held by reference — not a copy and not a defaults-resolved view, so an option the caller omitted reads back absent rather than as the default in force

Example

console.log(cy.options().headless); // true

Example graph and handle setup