dbc3cb7fdb654d6fcfe90706f8ea8fb731c886c9 — Egon Elbre 5 months ago 8fb571a
content/doc: add wasm example

Signed-off-by: Egon Elbre <egonelbre@gmail.com>
1 files changed, 2 insertions(+), 0 deletions(-)

M content/doc/architecture/layout.md
M content/doc/architecture/layout.md => content/doc/architecture/layout.md +2 -0
@@ 61,6 61,8 @@ The children can be:

<{{files/architecture/layout.go}}[/START SPACER OMIT/,/END SPACER OMIT/]

<pre style="min-height: 100px" data-run="wasm" data-pkg="architecture" data-args="layout-spacer" data-size="200x100"></pre>

## Custom

Sometimes the builtin layouts are not sufficient. To create a custom layout for widgets there are special functions and structures to manipulate layout.Context. In general, layout code performs the following steps for each sub-widget: