Skip to content

Add documentation on data-id attribute #7077

@GavinPen

Description

@GavinPen

Each node in an SVG diagram generated from mermaid code has a data-id attribute, whose value is derived from the node's ID.
The attribute can be used as a unique identifier for the node, allowing it to be selected for use in css and JavaScript.
But there doesn't seem to be much - if any - documentation on data-id.
Could documentation be added?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageNeeds to be verified, categorized, etc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions