Skip to content

BlockSuite API Documentation / @blocksuite/blocks / databaseViewAddView

Function: databaseViewAddView()

databaseViewAddView(model, viewMeta): BasicViewDataType<"table", DataType> | BasicViewDataType<"kanban", DataType>

Parameters

model: DatabaseBlockModel

viewMeta: ViewMeta

Returns

BasicViewDataType<"table", DataType> | BasicViewDataType<"kanban", DataType>

Source

packages/blocks/src/database-block/utils.ts:167