Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize Class Member Attributes #6267

Open
devinhedge opened this issue Feb 10, 2025 · 0 comments
Open

Initialize Class Member Attributes #6267

devinhedge opened this issue Feb 10, 2025 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request

Comments

@devinhedge
Copy link

Proposal

As a Mermaid.JS user creating diagrams using UML and the mermaid markdown language,
I would like to be able to specify an object's member attribute's initial value.

I know this will be done when I can declare a class's member attribute's initial value as such:
class WidgetLink{
+endpoint: +String "/widget"
+href: TargetURL
}

Example

class WidgetLink{
    +endpoint: +String **_"/widget"_**
    +href: TargetURL
}

Screenshots

I would just add it onto the end of the declaration in the class diagram.

@devinhedge devinhedge added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant