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.

IdNameRows of zones
one-columnOne columnmain
two-columnsTwo columnsleft, right
three-columnsThree columnsleft, middle, right
header-two-columnsHeader and two columnsheader / left, right
two-over-threeTwo over threetop-left, top-right / bottom-left, bottom-middle, bottom-right
main-sidebarMain and sidebarmain (twice as wide), sidebar
header-main-sidebarHeader, main and sidebarheader / main (twice as wide), sidebar
header-two-columns-footerHeader, two columns and footerheader / left, right / footer

GET /api/forms/layouts returns them with their zones:

json
[{ "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.