BlockSuite API Documentation / @blocksuite/blocks / ParagraphBlockModel
Class: ParagraphBlockModel
Extends
Constructors
new ParagraphBlockModel()
new ParagraphBlockModel():
ParagraphBlockModel
Returns
Overrides
BlockModel<ParagraphProps>.constructor
Defined in
packages/affine/model/dist/blocks/paragraph/paragraph-model.d.ts:23
Properties
[modelLabel]
[modelLabel]:
ParagraphProps
Inherited from
BlockModel.[modelLabel]
Defined in
packages/framework/store/dist/schema/base.d.ts:115
childMap
childMap:
ReadonlySignal
<Map
<string
,number
>>
Inherited from
BlockModel.childMap
Defined in
packages/framework/store/dist/schema/base.d.ts:108
collapsed
collapsed:
boolean
Inherited from
BlockModel.collapsed
Defined in
packages/affine/model/dist/blocks/paragraph/paragraph-model.d.ts:6
collapsed$
collapsed$:
Signal
<boolean
>
Inherited from
BlockModel.collapsed$
created
created:
Slot
<void
>
Inherited from
BlockModel.created
Defined in
packages/framework/store/dist/schema/base.d.ts:109
deleted
deleted:
Slot
<void
>
Inherited from
BlockModel.deleted
Defined in
packages/framework/store/dist/schema/base.d.ts:110
flavour
flavour:
"affine:paragraph"
Overrides
BlockModel.flavour
Defined in
packages/affine/model/dist/blocks/paragraph/paragraph-model.d.ts:21
id
id:
string
Inherited from
BlockModel.id
Defined in
packages/framework/store/dist/schema/base.d.ts:112
isEmpty
isEmpty:
ReadonlySignal
<boolean
>
Inherited from
BlockModel.isEmpty
Defined in
packages/framework/store/dist/schema/base.d.ts:113
keys
keys:
string
[]
Inherited from
BlockModel.keys
Defined in
packages/framework/store/dist/schema/base.d.ts:114
page
page:
Doc
Deprecated
use doc instead
Inherited from
BlockModel.page
Defined in
packages/framework/store/dist/schema/base.d.ts:104
pop()
pop: (
prop
) =>void
Parameters
prop
"text"
| "type"
| "collapsed"
Returns
void
Inherited from
BlockModel.pop
Defined in
packages/framework/store/dist/schema/base.d.ts:116
propsUpdated
propsUpdated:
Slot
<{key
:string
; }>
Inherited from
BlockModel.propsUpdated
Defined in
packages/framework/store/dist/schema/base.d.ts:117
role
role:
"root"
|"hub"
|"content"
Inherited from
BlockModel.role
Defined in
packages/framework/store/dist/schema/base.d.ts:120
stash()
stash: (
prop
) =>void
Parameters
prop
"text"
| "type"
| "collapsed"
Returns
void
Inherited from
BlockModel.stash
Defined in
packages/framework/store/dist/schema/base.d.ts:121
text
text:
Text
Overrides
BlockModel.text
Defined in
packages/affine/model/dist/blocks/paragraph/paragraph-model.d.ts:22
text$
text$:
Signal
<Text
>
Inherited from
BlockModel.text$
type
type:
ParagraphType
Inherited from
BlockModel.type
Defined in
packages/affine/model/dist/blocks/paragraph/paragraph-model.d.ts:4
type$
type$:
Signal
<ParagraphType
>
Inherited from
BlockModel.type$
version
version:
number
Inherited from
BlockModel.version
Defined in
packages/framework/store/dist/schema/base.d.ts:123
yBlock
yBlock:
YBlock
Inherited from
BlockModel.yBlock
Defined in
packages/framework/store/dist/schema/base.d.ts:124
Accessors
children
Get Signature
get children():
BlockModel
<object
,SignaledProps
<object
>>[]
Returns
BlockModel
<object
, SignaledProps
<object
>>[]
Inherited from
BlockModel.children
Defined in
packages/framework/store/dist/schema/base.d.ts:125
doc
Get Signature
get doc():
Doc
Returns
Set Signature
set doc(
doc
):void
Parameters
doc
Returns
void
Inherited from
BlockModel.doc
Defined in
packages/framework/store/dist/schema/base.d.ts:126
parent
Get Signature
get parent():
null
|BlockModel
<object
,SignaledProps
<object
>>
Returns
null
| BlockModel
<object
, SignaledProps
<object
>>
Inherited from
BlockModel.parent
Defined in
packages/framework/store/dist/schema/base.d.ts:128
Methods
[dispose]()
[dispose]():
void
Returns
void
Inherited from
BlockModel.[dispose]
Defined in
packages/framework/store/dist/schema/base.d.ts:133
dispose()
dispose():
void
Returns
void
Inherited from
BlockModel.dispose
Defined in
packages/framework/store/dist/schema/base.d.ts:130
firstChild()
firstChild():
null
|BlockModel
<object
,SignaledProps
<object
>>
Returns
null
| BlockModel
<object
, SignaledProps
<object
>>
Inherited from
BlockModel.firstChild
Defined in
packages/framework/store/dist/schema/base.d.ts:131
lastChild()
lastChild():
null
|BlockModel
<object
,SignaledProps
<object
>>
Returns
null
| BlockModel
<object
, SignaledProps
<object
>>
Inherited from
BlockModel.lastChild
Defined in
packages/framework/store/dist/schema/base.d.ts:132