Skip to content

API > @blocksuite/blocks > AttachmentService

Class: AttachmentService ​

Extends ​

Constructors ​

constructor ​

new AttachmentService(options): AttachmentService

Parameters ​

ParameterType
optionsBlockServiceOptions

Returns ​

AttachmentService

Inherited from ​

BlockService.constructor

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 ​

BlockService.disposables


flavour ​

readonly flavour: string

Defined In ​

packages/block-std/dist/service/index.d.ts:11

Inherited from ​

BlockService.flavour


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 ​

BlockService.std

Accessors ​

page ​

get page(): Page

Defined In ​

packages/block-std/dist/service/index.d.ts:15

Inherited from ​

BlockService.page


selectionManager ​

get selectionManager(): SelectionManager

Defined In ​

packages/block-std/dist/service/index.d.ts:16

Inherited from ​

BlockService.selectionManager


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 ​

BlockService.workspace

Methods ​

bindHotKey ​

bindHotKey(keymap, options?): void

Parameters ​

ParameterType
keymapRecord< string, UIEventHandler >
options?object
options.global?boolean

Returns ​

void

Inherited from ​

BlockService.bindHotKey

Defined In ​

packages/block-std/dist/service/index.d.ts:24


dispose ​

dispose(): void

Returns ​

void

Inherited from ​

BlockService.dispose

Defined In ​

packages/block-std/dist/service/index.d.ts:18


handleEvent ​

handleEvent( name, fn, options?): void

Parameters ​

ParameterType
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"
fnUIEventHandler
options?object
options.global?boolean

Returns ​

void

Inherited from ​

BlockService.handleEvent

Defined In ​

packages/block-std/dist/service/index.d.ts:21


mounted ​

mounted(): void

Returns ​

void

Inherited from ​

BlockService.mounted

Defined In ​

packages/block-std/dist/service/index.d.ts:19


unmounted ​

unmounted(): void

Returns ​

void

Inherited from ​

BlockService.unmounted

Defined In ​

packages/block-std/dist/service/index.d.ts:20