Rename GuiXml to Layout data type

This commit is contained in:
Keavon Chambers
2020-07-13 03:41:40 -07:00
parent 9e592f67e8
commit 487c0d9312
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -19,11 +19,11 @@ Layout is controlled using predefined attributes, such as `width`, `height`, `x-
The children of a component are passed to it as a `content` attribute. For example, looking at the row component:
```xml
<row content="INNER_XML: (GuiXml | None) = none">
<row content="INNER_XML: (Layout | None) = none">
{{INNER_XML}}
</row>
```
The `content` attribute defines a new variable `INNER_XML` of type either `GuiXml` or `None`, which can contain more XML or nothing at all. It has a default value of `none` (of type `None`).
The `content` attribute defines a new variable `INNER_XML` of type either `Layout` or `None`, which can contain more XML or nothing at all. It has a default value of `none` (of type `None`).
This is then expanded in the body of the row: `{{INNER_XML}}`.
## Defining new components