You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: