Element
Represents an element in the application's render tree.
Definition
Element primitives can be constructed outside of views though they will not be connected to render tree until they are used within a rendered view. If an element has no children then it can be written as self-closing.
Adding Parentheses
Most property expressions do not require explicitly adding parentheses, but for complex expressions it can help to better indicate the end of an expression.
Inline Expressions
Expressions can be added inline by wrapping it in braces ({ }
) to provide the inner content of an element.
Text Content
Simple textual content can be added inline to provide the inner content of an element.
Nested Elements
Compose together elements in a way familiar to anyone who has used XML
or HTML
.
Mixed Content
Elements can also contain mixed content of all the types listed above.
Last updated