Skip to content

BlockSuite API Documentation / @blocksuite/blocks / DataViewBlockModel

Class: DataViewBlockModel

Contents

Extends

Constructors

new DataViewBlockModel(undefined)

new DataViewBlockModel(): DataViewBlockModel

Returns

DataViewBlockModel

Overrides

@blocksuite/store.BaseBlockModel.constructor

Source

packages/blocks/src/data-view-block/data-view-model.ts:23

Properties

childrenUpdated

childrenUpdated: Slot<void>

Inherited from

@blocksuite/store.BaseBlockModel.childrenUpdated

Source

packages/store/dist/schema/base.d.ts:116


created

created: Slot<void>

Inherited from

@blocksuite/store.BaseBlockModel.created

Source

packages/store/dist/schema/base.d.ts:111


deleted

deleted: Slot<void>

Inherited from

@blocksuite/store.BaseBlockModel.deleted

Source

packages/store/dist/schema/base.d.ts:112


flavour

flavour: string

Inherited from

@blocksuite/store.BaseBlockModel.flavour

Source

packages/store/dist/schema/base.d.ts:102


id

id: string

Inherited from

@blocksuite/store.BaseBlockModel.id

Source

packages/store/dist/schema/base.d.ts:105


keys

keys: string[]

Inherited from

@blocksuite/store.BaseBlockModel.keys

Source

packages/store/dist/schema/base.d.ts:107


page

page: Page

Inherited from

@blocksuite/store.BaseBlockModel.page

Source

packages/store/dist/schema/base.d.ts:104


pop

pop: (prop) => void

Parameters

prop: "views"

Returns

void

Inherited from

@blocksuite/store.BaseBlockModel.pop

Source

packages/store/dist/schema/base.d.ts:109


propsUpdated

propsUpdated: Slot<Object>

Type declaration

key

key: string

Inherited from

@blocksuite/store.BaseBlockModel.propsUpdated

Source

packages/store/dist/schema/base.d.ts:113


role

role: "content" | "root" | "hub"

Inherited from

@blocksuite/store.BaseBlockModel.role

Source

packages/store/dist/schema/base.d.ts:103


stash

stash: (prop) => void

Parameters

prop: "views"

Returns

void

Inherited from

@blocksuite/store.BaseBlockModel.stash

Source

packages/store/dist/schema/base.d.ts:108


text?

text?: Text

Inherited from

@blocksuite/store.BaseBlockModel.text

Source

packages/store/dist/schema/base.d.ts:110


views

views: DataView[]

Inherited from

BaseBlockModel.views

Source

packages/blocks/src/data-view-block/data-view-model.ts:19


yBlock

yBlock: YBlock

Inherited from

@blocksuite/store.BaseBlockModel.yBlock

Source

packages/store/dist/schema/base.d.ts:106

Accessors

childMap

get childMap(): Map<string, number>

Returns

Map<string, number>

Source

packages/store/dist/schema/base.d.ts:117


children

get children(): BaseBlockModel<object>[]

Returns

BaseBlockModel<object>[]

Source

packages/store/dist/schema/base.d.ts:118

Methods

addView()

addView(mode): string

Parameters

mode: "table"

Returns

string

Source

packages/blocks/src/data-view-block/data-view-model.ts:32


applyViewsUpdate()

applyViewsUpdate(): void

Returns

void

Source

packages/blocks/src/data-view-block/data-view-model.ts:66


clone()

clone(): DataViewBlockModel

Returns

DataViewBlockModel

Inherited from

@blocksuite/store.BaseBlockModel.clone

Source

packages/store/dist/schema/base.d.ts:124


deleteView()

deleteView(id): void

Parameters

id: string

Returns

void

Source

packages/blocks/src/data-view-block/data-view-model.ts:47


dispose()

dispose(): void

Returns

void

Inherited from

@blocksuite/store.BaseBlockModel.dispose

Source

packages/store/dist/schema/base.d.ts:123


firstChild()

firstChild(): null | BaseBlockModel<object>

Returns

null | BaseBlockModel<object>

Inherited from

@blocksuite/store.BaseBlockModel.firstChild

Source

packages/store/dist/schema/base.d.ts:120


isEmpty()

isEmpty(): boolean

Returns

boolean

Inherited from

@blocksuite/store.BaseBlockModel.isEmpty

Source

packages/store/dist/schema/base.d.ts:119


lastChild()

lastChild(): null | BaseBlockModel<object>

Returns

null | BaseBlockModel<object>

Inherited from

@blocksuite/store.BaseBlockModel.lastChild

Source

packages/store/dist/schema/base.d.ts:121


lastItem()

lastItem(): null | BaseBlockModel<object>

Returns

null | BaseBlockModel<object>

Inherited from

@blocksuite/store.BaseBlockModel.lastItem

Source

packages/store/dist/schema/base.d.ts:122


updateView()

updateView(id, update): void

Parameters

id: string

update: (data) => Partial<DataView>

Returns

void

Source

packages/blocks/src/data-view-block/data-view-model.ts:54


Generated using typedoc-plugin-markdown and TypeDoc