Attribute Style
g-bind
When using g-bind
directive with the style
attribute, you can manage the inline style dynamically. In this case, the binding is by an object containing CSS styles as key/value structure. The keys of the object represent the CSS properties, and the values represent the corresponding values for those properties.
API
You can define and get the style with the Graphane SVG API .style
. Each style property is now a method, and you can call with parameter to set value or without parameter to get the current value.