Reference
Layouts
The built-in layouts that forms and dashboards use, and their zones.
Forms and dashboards lay out their components in the zones of a layout. The layouts are built in. A zone's share of its row's width is 1 unless noted.
| Id | Name | Rows of zones |
|---|---|---|
one-column | One column | main |
two-columns | Two columns | left, right |
three-columns | Three columns | left, middle, right |
header-two-columns | Header and two columns | header / left, right |
two-over-three | Two over three | top-left, top-right / bottom-left, bottom-middle, bottom-right |
main-sidebar | Main and sidebar | main (twice as wide), sidebar |
header-main-sidebar | Header, main and sidebar | header / main (twice as wide), sidebar |
header-two-columns-footer | Header, two columns and footer | header / left, right / footer |
GET /api/forms/layouts returns them with their zones:
[{ "id": "two-over-three", "name": "Two over three", "description": "Two columns at the top, three at the bottom.",
"rows": [ { "zones": [ { "id": "top-left", "label": "Top left", "span": 1 }, { "id": "top-right", "label": "Top right", "span": 1 } ] }, … ] }]- A form's layout is chosen when it's made and can't change.
- On narrow screens, zones wrap onto new lines.
- On a dashboard, each part's height comes from the default size in its manifest.