page.create_container, add children with container.add, then add the container to the
page. Children flow or flex inside the container’s padded area.
Container layout
flow layout stacks children vertically with an optional gap. A flex layout
distributes children along a row or column. Containers also accept style, width,
height, position, and classname.
Flow
Flow is the simplest layout. Children stack from top to bottom, separated bygap.
Flex
Flex distributes children along a row or column and controls how spare space is shared.Justify
justify controls distribution along the main axis.
One of
flex-start, flex-end, center, space-between, space-around, space-evenly.Align
align controls placement along the cross axis.
One of
flex-start, flex-end, center, stretch, baseline.Adding children
Usecontainer.add(...elements) to place children. They flow or flex inside the container’s
padded area according to its layout.
Related pages
Elements
The text, rectangle, and image primitives you add to a container.
Tables
Structured rows and columns with the table factory.