API > @blocksuite/blocks > AttachmentService
Class: AttachmentService ​
Extends ​
Constructors ​
constructor ​
new AttachmentService(
options
):AttachmentService
Parameters ​
Parameter | Type |
---|---|
options | BlockServiceOptions |
Returns ​
Inherited from ​
Defined In ​
packages/block-std/dist/service/index.d.ts:13
Properties ​
disposables ​
readonly
disposables:DisposableGroup
Defined In ​
packages/block-std/dist/service/index.d.ts:12
Inherited from ​
flavour ​
readonly
flavour:string
Defined In ​
packages/block-std/dist/service/index.d.ts:11
Inherited from ​
maxFileSize ​
maxFileSize:
number
Defined In ​
packages/blocks/src/attachment-block/attachment-service.ts:6
std ​
readonly
std:BlockStdProvider
Defined In ​
packages/block-std/dist/service/index.d.ts:10
Inherited from ​
Accessors ​
page ​
get
page():Page
Defined In ​
packages/block-std/dist/service/index.d.ts:15
Inherited from ​
selectionManager ​
get
selectionManager():SelectionManager
Defined In ​
packages/block-std/dist/service/index.d.ts:16
Inherited from ​
uiEventDispatcher ​
get
uiEventDispatcher():UIEventDispatcher
Defined In ​
packages/block-std/dist/service/index.d.ts:17
Inherited from ​
BlockService
.uiEventDispatcher
workspace ​
get
workspace():Workspace
Defined In ​
packages/block-std/dist/service/index.d.ts:14
Inherited from ​
Methods ​
bindHotKey ​
bindHotKey(
keymap
,options
?):void
Parameters ​
Parameter | Type |
---|---|
keymap | Record < string , UIEventHandler > |
options ? | object |
options.global ? | boolean |
Returns ​
void
Inherited from ​
Defined In ​
packages/block-std/dist/service/index.d.ts:24
dispose ​
dispose():
void
Returns ​
void
Inherited from ​
Defined In ​
packages/block-std/dist/service/index.d.ts:18
handleEvent ​
handleEvent(
name
,fn
,options
?):void
Parameters ​
Parameter | Type |
---|---|
name | "blur" | "click" | "copy" | "cut" | "drop" | "focus" | "paste" | "wheel" | "compositionEnd" | "doubleClick" | "tripleClick" | "pointerDown" | "pointerMove" | "pointerUp" | "pointerOut" | "dragStart" | "dragMove" | "dragEnd" | "keyDown" | "keyUp" | "selectionChange" | "compositionStart" | "compositionUpdate" | "beforeInput" | "contextMenu" |
fn | UIEventHandler |
options ? | object |
options.global ? | boolean |
Returns ​
void
Inherited from ​
Defined In ​
packages/block-std/dist/service/index.d.ts:21
mounted ​
mounted():
void
Returns ​
void
Inherited from ​
Defined In ​
packages/block-std/dist/service/index.d.ts:19
unmounted ​
unmounted():
void
Returns ​
void
Inherited from ​
Defined In ​
packages/block-std/dist/service/index.d.ts:20