Skip to content

LayoutItemModel

LayoutItemModel = SectionModel | { fields: string[]; kind: "sidebar"; when?: RecordWhen; } | RelatedModel | GroupModel | CustomSectionModel | MapSectionModel | GalleryModel | HistorySectionModel | CommentsSectionModel

Defined in: packages/schema/src/model.ts:807

An item of the record page (.layout((r) => ...) with l); see The record page.

SectionModel


{ fields: string[]; kind: "sidebar"; when?: RecordWhen; }

fields: string[]

The fields it shows, in order.

kind: "sidebar"

A read-only summary card beside the main column.

optional when?: RecordWhen

Whether it shows on the form, the read view or both, or a condition on the saved record that it shows while it holds.


RelatedModel


GroupModel


CustomSectionModel


MapSectionModel


GalleryModel


HistorySectionModel


CommentsSectionModel