Skip to content
maxkfranz edited this page May 8, 2012 · 2 revisions

ele.style()

Get the computed visual style of the element.

ele.style()

Gets the computed style for the element

ele.style( property )

Gets the computed value for the specified property property : The visual style property to get

Details

This function returns the computed style of the element. The function can not be used to change the visual style of an element. To override the visual style of a particular element, see ele.bypass().

Examples

var style = cy.nodes("#n1").style();
console.log("n1 has the colour `%s`", style.fillColor);

Clone this wiki locally