Specifying Rows, Cols and Nested Layouts
Zero-True allows you to create complicated nested layouts. These are the docs for columns, rows, and the layout:pydantic model zero_true.Layout
Layout is an object that contains the list of rows to be rendered.
Json Schema
Json Schema
pydantic model zero_true.Row
field rows
field rows
field rows: List[Row] = []
List of rows in this layout.
JSON Schema
JSON Schema
JSON Schema
JSON Schema
Note that any Rows and Columns defined must be placed inside of a Layout or will not be rendered.
Mixed Layouts
If some components are placed in a layout and others are not, the layout will accommodate both:1
Rendering Order
Rows defined in the layout will be rendered in the order they are in the list and their subcomponents and columns will be rendered in the order they are defined in the list.
2
Multiple Rendering
If a row or column is a subcomponent of another row/column or the layout itself, its components will be rendered multiple times wherever it is included.
3
Component Definition
Any components included in a row, column, or layout must be defined in the cell where that row, column, or layout is defined or they will not be rendered.
4
Full Width Rendering
All other components not in a row or column will be rendered in the order they are defined in code and take up the full width available, each in their own row.