Skip to content

BlockSuite API Documentation / @blocksuite/blocks / columnPresets

Variable: columnPresets

const columnPresets: object

Type declaration

checkboxColumnConfig

checkboxColumnConfig: object

checkboxColumnConfig.model

model: ColumnConfig<"checkbox", Record<string, never>, boolean>

checkboxColumnConfig.renderer

renderer: Renderer<Record<string, never>, boolean>

checkboxColumnConfig.type

type: "checkbox"

dateColumnConfig

dateColumnConfig: object

dateColumnConfig.model

model: ColumnConfig<"date", Record<string, never>, number>

dateColumnConfig.renderer

renderer: Renderer<Record<string, never>, number>

dateColumnConfig.type

type: "date"

imageColumnConfig

imageColumnConfig: object

imageColumnConfig.model

model: ColumnConfig<"image", Record<string, never>, string>

imageColumnConfig.renderer

renderer: Renderer<Record<string, never>, string>

imageColumnConfig.type

type: "image"

linkColumnConfig

linkColumnConfig: object

linkColumnConfig.model

model: ColumnConfig<"link", Record<string, never>, string>

linkColumnConfig.renderer

renderer: Renderer<Record<string, never>, string>

linkColumnConfig.type

type: "link"

multiSelectColumnConfig

multiSelectColumnConfig: object

multiSelectColumnConfig.model

model: ColumnConfig<"multi-select", SelectColumnData, string[]>

multiSelectColumnConfig.renderer

renderer: Renderer<SelectColumnData, string[]>

multiSelectColumnConfig.type

type: "multi-select"

numberColumnConfig

numberColumnConfig: object

numberColumnConfig.model

model: ColumnConfig<"number", object, number>

numberColumnConfig.renderer

renderer: Renderer<object, number>

Type declaration

decimal

decimal: number

numberColumnConfig.type

type: "number"

progressColumnConfig

progressColumnConfig: object

progressColumnConfig.model

model: ColumnConfig<"progress", Record<string, never>, number>

progressColumnConfig.renderer

renderer: Renderer<Record<string, never>, number>

progressColumnConfig.type

type: "progress"

selectColumnConfig

selectColumnConfig: object

selectColumnConfig.model

model: ColumnConfig<"select", SelectColumnData, string>

selectColumnConfig.renderer

renderer: Renderer<SelectColumnData, string>

selectColumnConfig.type

type: "select"

textColumnConfig

textColumnConfig: object

textColumnConfig.model

model: ColumnConfig<"text", Record<string, never>, string>

textColumnConfig.renderer

renderer: Renderer<Record<string, never>, string>

textColumnConfig.type

type: "text"

Source

packages/blocks/src/database-block/data-view/column/presets/index.ts:11