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().
Properties
Section titled “Properties”component
Section titled “component”component:
string
Defined in: packages/schema/src/model.ts:1024
The component’s name, as protobase.ui.tsx registers it.
fallback?
Section titled “fallback?”
optionalfallback?: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.
props?
Section titled “props?”
optionalprops?: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.
sidebar?
Section titled “sidebar?”
optionalsidebar?:true
Defined in: packages/schema/src/model.ts:1030
Drawn as a sidebar card instead of in the main column.
title?
Section titled “title?”
optionaltitle?:string
Defined in: packages/schema/src/model.ts:1026
The title over it.
optionalwhen?:ShowWhen
Defined in: packages/schema/src/model.ts:1032
Whether it shows on the form, the read view or both.