Skip to content

API > @blocksuite/blocks > DataViewBlockModel

Class: DataViewBlockModel ​

Extends ​

Constructors ​

constructor ​

new DataViewBlockModel(): DataViewBlockModel

Returns ​

DataViewBlockModel

Overrides ​

BaseBlockModel.constructor

Defined In ​

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

Properties ​

childMap ​

childMap: Map< string, number >

Defined In ​

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

Inherited from ​

BaseBlockModel.childMap


children ​

children: BaseBlockModel< object >[]

Defined In ​

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

Inherited from ​

BaseBlockModel.children


childrenUpdated ​

childrenUpdated: Slot< void >

Defined In ​

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

Inherited from ​

BaseBlockModel.childrenUpdated


created ​

created: Slot< void >

Defined In ​

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

Inherited from ​

BaseBlockModel.created


deleted ​

deleted: Slot< void >

Defined In ​

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

Inherited from ​

BaseBlockModel.deleted


flavour ​

flavour: string

Defined In ​

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

Inherited from ​

BaseBlockModel.flavour


id ​

id: string

Defined In ​

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

Inherited from ​

BaseBlockModel.id


keys ​

keys: string[]

Defined In ​

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

Inherited from ​

BaseBlockModel.keys


page ​

page: Page

Defined In ​

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

Inherited from ​

BaseBlockModel.page


propsUpdated ​

propsUpdated: Slot< {newProps: unknown; oldProps: unknown;} >

Defined In ​

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

Inherited from ​

BaseBlockModel.propsUpdated


role ​

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

Defined In ​

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

Inherited from ​

BaseBlockModel.role


text ​

optional text: Text

Defined In ​

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

Inherited from ​

BaseBlockModel.text


views ​

views: DataView[]

Defined In ​

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

Inherited from ​

BaseBlockModel.views


yBlock ​

yBlock: YBlock

Defined In ​

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

Inherited from ​

BaseBlockModel.yBlock

Methods ​

addView ​

addView(mode): string

Parameters ​

ParameterType
mode"table"

Returns ​

string

Defined In ​

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


applyViewsUpdate ​

applyViewsUpdate(): void

Returns ​

void

Defined In ​

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


clone ​

clone(): DataViewBlockModel

Returns ​

DataViewBlockModel

Inherited from ​

BaseBlockModel.clone

Defined In ​

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


deleteView ​

deleteView(id): void

Parameters ​

ParameterType
idstring

Returns ​

void

Defined In ​

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


dispose ​

dispose(): void

Returns ​

void

Inherited from ​

BaseBlockModel.dispose

Defined In ​

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


firstChild ​

firstChild(): null | BaseBlockModel< object >

Returns ​

null | BaseBlockModel< object >

Inherited from ​

BaseBlockModel.firstChild

Defined In ​

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


firstItem ​

firstItem(): null | BaseBlockModel< object >

Returns ​

null | BaseBlockModel< object >

Inherited from ​

BaseBlockModel.firstItem

Defined In ​

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


isEmpty ​

isEmpty(): boolean

Returns ​

boolean

Inherited from ​

BaseBlockModel.isEmpty

Defined In ​

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


lastChild ​

lastChild(): null | BaseBlockModel< object >

Returns ​

null | BaseBlockModel< object >

Inherited from ​

BaseBlockModel.lastChild

Defined In ​

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


lastItem ​

lastItem(): null | BaseBlockModel< object >

Returns ​

null | BaseBlockModel< object >

Inherited from ​

BaseBlockModel.lastItem

Defined In ​

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


updateView ​

updateView(id, update): void

Parameters ​

ParameterType
idstring
updatefunction

Returns ​

void

Defined In ​

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