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

Allow to define a default attribute within a type that can then be used within assignments. #8

Open
studio42gmbh opened this issue Apr 18, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@studio42gmbh
Copy link
Owner

Allow to define a default attribute within a type that can then be used within assignments.

Needs to extend DLInstance to have a default attribute, add an annotation @default and extend the assignment handling in parser.

something like:

type H1 extends HTMLElement 
{
	String text @default: "";
}

Div myContent {
	H1 heading : "Welcome"; // <- Creates a new instance of H1 and assigns its text
	P description : "Little text \nwith multiple lines"; // <- Creates a new instance of P and assigns its text
}
@studio42gmbh studio42gmbh added the enhancement New feature or request label Apr 18, 2022
@studio42gmbh studio42gmbh self-assigned this Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant