API > @blocksuite/blocks > AttachmentBlockModel
Class: AttachmentBlockModel ​
Extends ​
Constructors ​
constructor ​
new AttachmentBlockModel():
AttachmentBlockModel
Returns ​
Overrides ​
Defined In ​
packages/blocks/src/attachment-block/attachment-model.ts:42
Properties ​
caption ​
optionalcaption:string
Defined In ​
packages/blocks/src/attachment-block/attachment-model.ts:10
Inherited from ​
BaseBlockModel.caption
childMap ​
childMap:
Map<string,number>
Defined In ​
packages/store/dist/schema/base.d.ts:116
Inherited from ​
children ​
children:
BaseBlockModel<object>[]
Defined In ​
packages/store/dist/schema/base.d.ts:117
Inherited from ​
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 ​
deleted ​
deleted:
Slot<void>
Defined In ​
packages/store/dist/schema/base.d.ts:110
Inherited from ​
flavour ​
flavour:
string
Defined In ​
packages/store/dist/schema/base.d.ts:102
Inherited from ​
id ​
id:
string
Defined In ​
packages/store/dist/schema/base.d.ts:105
Inherited from ​
keys ​
keys:
string[]
Defined In ​
packages/store/dist/schema/base.d.ts:107
Inherited from ​
loadingKey ​
optionalloadingKey:null|string
Defined In ​
packages/blocks/src/attachment-block/attachment-model.ts:17
Inherited from ​
BaseBlockModel.loadingKey
name ​
name:
string
Defined In ​
packages/blocks/src/attachment-block/attachment-model.ts:4
Inherited from ​
BaseBlockModel.name
page ​
page:
Page
Defined In ​
packages/store/dist/schema/base.d.ts:104
Inherited from ​
propsUpdated ​
propsUpdated:
Slot< {newProps:unknown;oldProps:unknown;} >
Defined In ​
packages/store/dist/schema/base.d.ts:111
Inherited from ​
role ​
role:
"root"|"hub"|"content"
Defined In ​
packages/store/dist/schema/base.d.ts:103
Inherited from ​
size ​
size:
number
Defined In ​
packages/blocks/src/attachment-block/attachment-model.ts:5
Inherited from ​
BaseBlockModel.size
sourceId ​
optionalsourceId:string
Defined In ​
packages/blocks/src/attachment-block/attachment-model.ts:18
Inherited from ​
BaseBlockModel.sourceId
text ​
optionaltext:Text
Defined In ​
packages/store/dist/schema/base.d.ts:108
Inherited from ​
type ​
type:
string
MIME type
Defined In ​
packages/blocks/src/attachment-block/attachment-model.ts:9
Inherited from ​
BaseBlockModel.type
yBlock ​
yBlock:
YBlock
Defined In ​
packages/store/dist/schema/base.d.ts:106
Inherited from ​
Methods ​
clone ​
clone():
AttachmentBlockModel
Returns ​
Inherited from ​
Defined In ​
packages/store/dist/schema/base.d.ts:124
dispose ​
dispose():
void
Returns ​
void
Inherited from ​
Defined In ​
packages/store/dist/schema/base.d.ts:123
firstChild ​
firstChild():
null|BaseBlockModel<object>
Returns ​
null | BaseBlockModel< object >
Inherited from ​
Defined In ​
packages/store/dist/schema/base.d.ts:119
firstItem ​
firstItem():
null|BaseBlockModel<object>
Returns ​
null | BaseBlockModel< object >
Inherited from ​
Defined In ​
packages/store/dist/schema/base.d.ts:121
isEmpty ​
isEmpty():
boolean
Returns ​
boolean
Inherited from ​
Defined In ​
packages/store/dist/schema/base.d.ts:118
lastChild ​
lastChild():
null|BaseBlockModel<object>
Returns ​
null | BaseBlockModel< object >
Inherited from ​
Defined In ​
packages/store/dist/schema/base.d.ts:120
lastItem ​
lastItem():
null|BaseBlockModel<object>
Returns ​
null | BaseBlockModel< object >
Inherited from ​
Defined In ​
packages/store/dist/schema/base.d.ts:122