Mindmap Class¶
- class Mindmap¶
Represents a Mindmap diagram
- render(array $attributes = [])¶
Renders the diagram
- Parameters:
$attributes (
array) –HTML attributes for the <pre> tag as name=>value pairs
Note
The mermaid class is added
- Returns:
Mermaid diagram code in a <pre> tag
- Return type:
string
- withComment(string $comment)¶
Adds a comment to the mindmap
- Parameters:
$comment (
string) – The comment
- Returns:
A new instance of
Mindmapwith a comment- Return type: