From 3abfa549fecb4f5e7c73a086c2540ff7aa95c9c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= <5621605+rodrigogiraoserrao@users.noreply.github.com> Date: Tue, 20 Dec 2022 11:43:27 +0000 Subject: [PATCH] Complete layout reference. --- docs/styles/layout.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/styles/layout.md b/docs/styles/layout.md index a3021f753..e94b77d01 100644 --- a/docs/styles/layout.md +++ b/docs/styles/layout.md @@ -2,12 +2,12 @@ The `layout` property defines how a widget arranges its children. -See [layout](../guide/layout.md) guide for more information. +See the [layout](../guide/layout.md) guide for more information. ## Syntax ``` -layout: [grid|horizontal|vertical]; +layout: grid | horizontal | vertical; ``` ### Values @@ -21,6 +21,7 @@ layout: [grid|horizontal|vertical]; ## Example Note how the `layout` property affects the arrangement of widgets in the example below. +To learn more about the grid layout, you can see the [layout guide](../guide/layout.md) or the [grid reference](../grid). === "layout.py" @@ -48,5 +49,5 @@ layout: horizontal; ## Python ```python -widget.layout = "horizontal" +widget.styles.layout = "horizontal" ```