mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Fix reference for layout.
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
|
||||
The `layout` property defines how a widget arranges its children.
|
||||
|
||||
See the [layout](../guide/layout.md) guide for more information.
|
||||
|
||||
## Syntax
|
||||
|
||||
```
|
||||
--8<-- "docs/snippets/syntax_block_start.md"
|
||||
layout: grid | horizontal | vertical;
|
||||
```
|
||||
--8<-- "docs/snippets/syntax_block_end.md"
|
||||
|
||||
The `layout` style takes an option that defines how child widgets will be arranged, as per the table shown below.
|
||||
|
||||
### Values
|
||||
|
||||
@@ -18,6 +18,8 @@ layout: grid | horizontal | vertical;
|
||||
| `horizontal` | Child widgets will be arranged along the horizontal axis, from left to right. |
|
||||
| `vertical` (default) | Child widgets will be arranged along the vertical axis, from top to bottom. |
|
||||
|
||||
See the [layout](../guide/layout.md) guide for more information.
|
||||
|
||||
## Example
|
||||
|
||||
Note how the `layout` property affects the arrangement of widgets in the example below.
|
||||
|
||||
Reference in New Issue
Block a user