@mermaid-editor-sdk/headless / setClassStyle
Function: setClassStyle()
setClassStyle(
source,id,property,color):string
Defined in: source/class-mutations.ts:509
Sets one style property for a class.
Parameters
| Parameter | Type | Description |
|---|---|---|
source | string | Mermaid source to inspect or update. |
id | string | Identifier of the diagram element. |
property | ClassStyleProperty | Style property to read or update. |
color | string | Color value to assign. |
Returns
string