Gets or sets the CSS class associated with this item.
Namespace: MindFusion.Diagramming
File: DiagramItem.js
SyntaxJavaScript
Copy Code
|
|---|
get cssClass() {} |
String
A string containing the CSS class.
RemarksYou could set this value to associate CSS rules with a specific item using class selector.
ExampleJavaScript
Copy Code
|
|---|
| // JavaScript node.text = "Attention"; node.cssClass = "urgent"; // CSS mfd-shapenode.urgent { --brush: #ffcccc; --stroke: red; } |
See Also