Skip to content

CustomSectionModel

CustomSectionModel = object

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

A project component drawn on the record page where it is listed, in the main column or with sidebar in the sidebar, under title when it has one. It gets props and reads the record with useLayoutRecord().

component: string

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

The component’s name, as protobase.ui.tsx registers it.


optional fallback?: CustomFallbackItemModel[]

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

What a client without the component, or where it fails to draw, shows in its place, title included: any main-column item in the main column, sidebar maps and custom sections in the sidebar, or none to show nothing.


kind: "custom"

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

A custom section.


optional props?: Record<string, JsonValue>

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

The plain data the component gets, with field references where it takes a field.


optional sidebar?: true

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

Drawn as a sidebar card instead of in the main column.


optional title?: string

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

The title over it.


optional when?: ShowWhen

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

Whether it shows on the form, the read view or both.