Skip to content

BeechCMS


BeechCMS / @beechcms/core / ContentViewRecord

Interface: ContentViewRecord ​

Storage shape: type is unchecked text until projectContentView narrows it.

Extends ​

Properties ​

config ​

config: object

appearance ​

appearance: object

appearance.columnOrder? ​

optional columnOrder?: string[]

Display order of data columns; columns missing from the list follow in default order.

appearance.density? ​

optional density?: "compact" | "comfortable" | "normal"

appearance.hiddenColumns? ​

optional hiddenColumns?: string[]

appearance.pageSize? ​

optional pageSize?: number

card? ​

optional card?: object

Card layout (Kanban and Gallery). Dropped from any other instance.

card.header? ​

optional header?: { branchId: string; } | null

Full-width primary line. Max 1.

card.media? ​

optional media?: { branchId: string; } | null

Optional media/avatar slot. Full width. Max 1.

card.metadata ​

metadata: object[]

2-column grid. Hard cap enforced by validator (see METADATA_SLOT_CAP).

card.subtitle? ​

optional subtitle?: { branchId: string; } | null

Full-width secondary line. Max 1.

card.version ​

version: 1

conditionalFormats ​

conditionalFormats: object[]

filters ​

filters: object[]

folders? ​

optional folders?: Record<string, { color?: "slate" | "red" | "orange" | "amber" | "green" | "teal" | "blue" | "violet" | "pink"; description?: string; icon?: "Folder" | "Users" | "Image" | "Video" | "Music" | "Tag" | "Bookmark" | "Star" | "Heart" | "Calendar" | "Book" | "Flag" | "Camera" | "Home" | "Briefcase" | "Gift" | "Sun" | "Crown"; label?: string; }>

Gallery-only. Style per folder, keyed by the normalized group value. Dropped from any other instance.

groupBy ​

groupBy: { columnRef: string; datePrecision?: { day: boolean; month: boolean; year: boolean; }; } | null

Union Members ​
Type Literal ​

{ columnRef: string; datePrecision?: { day: boolean; month: boolean; year: boolean; }; }

columnRef ​

columnRef: string = viewColumnRefSchema

datePrecision? ​

optional datePrecision?: object

Only meaningful on a date column; stripped otherwise by validateViewConfigAgainstSeed.

datePrecision.day ​

day: boolean

datePrecision.month ​

month: boolean

datePrecision.year ​

year: boolean


null

kanban? ​

optional kanban?: object

Kanban-only. Dropped from any non-kanban instance.

kanban.axisBranchId ​

axisBranchId: string | null

kanban.cardSize? ​

optional cardSize?: "compact" | "comfortable"

Card density. Absent ⇒ 'comfortable'.

kanban.collapsedColumnValues? ​

optional collapsedColumnValues?: string[]

kanban.colorColumns? ​

optional colorColumns?: boolean

Tint each column with its option color. Absent ⇒ on. The board ignores it while conditional formats are active.

kanban.hiddenColumnValues? ​

optional hiddenColumnValues?: string[]

kanban.showFieldLabels? ​

optional showFieldLabels?: boolean

Show the field label above each metadata value. Absent ⇒ on.

kanban.sort ​

sort: { branchId: string; dir: "ASC" | "DESC"; } | null

kanban.wrapTitle? ​

optional wrapTitle?: boolean

Let the card header wrap on two lines instead of truncating. Absent ⇒ on.

sort ​

sort: { columnRef: string; desc: boolean; } | null

Inherited from ​

ContentView.config


createdAt ​

createdAt: number

Inherited from ​

ContentView.createdAt


id ​

id: string

Inherited from ​

ContentView.id


position ​

position: number

Inherited from ​

ContentView.position


seedSlug ​

seedSlug: string

Inherited from ​

ContentView.seedSlug


title ​

title: string | null

null → the client renders the translated label of type.

Inherited from ​

ContentView.title


type ​

type: string


updatedAt ​

updatedAt: number

Inherited from ​

ContentView.updatedAt


updatedBy ​

updatedBy: string

Inherited from ​

ContentView.updatedBy