BeechCMS / @beechcms/core / ContentView
Interface: ContentView
The API shape. Timestamps are unix seconds, like every other system table.
Properties
config
config:
object
appearance
appearance:
object
appearance.columnOrder?
optionalcolumnOrder?:string[]
Display order of data columns; columns missing from the list follow in default order.
appearance.density?
optionaldensity?:"compact"|"comfortable"|"normal"
appearance.hiddenColumns?
optionalhiddenColumns?:string[]
appearance.pageSize?
optionalpageSize?:number
card?
optionalcard?:object
Card layout (Kanban and Gallery). Dropped from any other instance.
card.header?
optionalheader?: {branchId:string; } |null
Full-width primary line. Max 1.
card.media?
optionalmedia?: {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?
optionalsubtitle?: {branchId:string; } |null
Full-width secondary line. Max 1.
card.version
version:
1
conditionalFormats
conditionalFormats:
object[]
filters
filters:
object[]
folders?
optionalfolders?: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?
optionaldatePrecision?: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?
optionalkanban?:object
Kanban-only. Dropped from any non-kanban instance.
kanban.axisBranchId
axisBranchId:
string|null
kanban.cardSize?
optionalcardSize?:"compact"|"comfortable"
Card density. Absent ⇒ 'comfortable'.
kanban.collapsedColumnValues?
optionalcollapsedColumnValues?:string[]
kanban.colorColumns?
optionalcolorColumns?:boolean
Tint each column with its option color. Absent ⇒ on. The board ignores it while conditional formats are active.
kanban.hiddenColumnValues?
optionalhiddenColumnValues?:string[]
kanban.showFieldLabels?
optionalshowFieldLabels?:boolean
Show the field label above each metadata value. Absent ⇒ on.
kanban.sort
sort: {
branchId:string;dir:"ASC"|"DESC"; } |null
kanban.wrapTitle?
optionalwrapTitle?:boolean
Let the card header wrap on two lines instead of truncating. Absent ⇒ on.
sort
sort: {
columnRef:string;desc:boolean; } |null
createdAt
createdAt:
number
id
id:
string
position
position:
number
seedSlug
seedSlug:
string
title
title:
string|null
null → the client renders the translated label of type.
type
type:
DashboardView
updatedAt
updatedAt:
number
updatedBy
updatedBy:
string