BlockSuite API Documentation / @blocksuite/blocks / PageBlockModel
Class: PageBlockModel
Extends
BlockModel
<PageProps
>
Contents
Constructors
new PageBlockModel(undefined)
new PageBlockModel():
PageBlockModel
Returns
Overrides
BlockModel<PageProps>.constructor
Source
packages/blocks/src/page-block/page-model.ts:9
Properties
childrenUpdated
childrenUpdated:
Slot
<void
>
Inherited from
BlockModel.childrenUpdated
Source
packages/store/dist/schema/base.d.ts:116
created
created:
Slot
<void
>
Inherited from
BlockModel.created
Source
packages/store/dist/schema/base.d.ts:111
deleted
deleted:
Slot
<void
>
Inherited from
BlockModel.deleted
Source
packages/store/dist/schema/base.d.ts:112
flavour
flavour:
string
Inherited from
BlockModel.flavour
Source
packages/store/dist/schema/base.d.ts:102
id
id:
string
Inherited from
BlockModel.id
Source
packages/store/dist/schema/base.d.ts:105
keys
keys:
string
[]
Inherited from
BlockModel.keys
Source
packages/store/dist/schema/base.d.ts:107
page
page:
Page
Inherited from
BlockModel.page
Source
packages/store/dist/schema/base.d.ts:104
pop
pop: (
prop
) =>void
Parameters
• prop: "title"
Returns
void
Inherited from
BlockModel.pop
Source
packages/store/dist/schema/base.d.ts:109
propsUpdated
propsUpdated:
Slot
<Object
>
Type declaration
key
key:
string
Inherited from
BlockModel.propsUpdated
Source
packages/store/dist/schema/base.d.ts:113
role
role:
"root"
|"hub"
|"content"
Inherited from
BlockModel.role
Source
packages/store/dist/schema/base.d.ts:103
stash
stash: (
prop
) =>void
Parameters
• prop: "title"
Returns
void
Inherited from
BlockModel.stash
Source
packages/store/dist/schema/base.d.ts:108
text?
text?:
Text
Inherited from
BlockModel.text
Source
packages/store/dist/schema/base.d.ts:110
title
title:
Text
Inherited from
BlockModel.title
Source
packages/blocks/src/page-block/page-model.ts:5
yBlock
yBlock:
YBlock
Inherited from
BlockModel.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():BlockModel
<object
>[]
Returns
BlockModel
<object
>[]
Source
packages/store/dist/schema/base.d.ts:118
Methods
clone()
clone():
this
Returns
this
Inherited from
BlockModel.clone
Source
packages/store/dist/schema/base.d.ts:124
dispose()
dispose():
void
Returns
void
Inherited from
BlockModel.dispose
Source
packages/store/dist/schema/base.d.ts:123
firstChild()
firstChild():
null
|BlockModel
<object
>
Returns
null
| BlockModel
<object
>
Inherited from
BlockModel.firstChild
Source
packages/store/dist/schema/base.d.ts:120
isEmpty()
isEmpty():
boolean
Returns
boolean
Inherited from
BlockModel.isEmpty
Source
packages/store/dist/schema/base.d.ts:119
lastChild()
lastChild():
null
|BlockModel
<object
>
Returns
null
| BlockModel
<object
>
Inherited from
BlockModel.lastChild
Source
packages/store/dist/schema/base.d.ts:121
lastItem()
lastItem():
null
|BlockModel
<object
>
Returns
null
| BlockModel
<object
>
Inherited from
BlockModel.lastItem
Source
packages/store/dist/schema/base.d.ts:122
Generated using typedoc-plugin-markdown and TypeDoc