Skip to content

cy.styleEnabled()

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

cy.styleEnabled — Core › Metadata and environment

Preview · Core › Metadata and environment

Read in the complete API reference · All API members

// Check whether style is enabled
cy.styleEnabled(): boolean

Always true: there is no style-disabled mode, since the columnar model derives geometry from stored style channels rather than treating style as an optional layer. Use this to inspect the instance's style capability.

Returns boolean

true

Example

console.log(cy.styleEnabled()); // true

Example graph and handle setup