Skip to content

BlockSuite API Documentation / @blocksuite/blocks / MenuContext

Class: abstract MenuContext

Constructors

new MenuContext()

new MenuContext(): MenuContext

Returns

MenuContext

Accessors

doc

Get Signature

get abstract doc(): Doc

Returns

Doc

Defined in

packages/blocks/src/root-block/configs/toolbar.ts:7


firstElement

Get Signature

get firstElement(): null | GfxModel

Returns

null | GfxModel

Defined in

packages/blocks/src/root-block/configs/toolbar.ts:9


host

Get Signature

get abstract host(): EditorHost

Returns

EditorHost

Defined in

packages/blocks/src/root-block/configs/toolbar.ts:13


selectedBlockModels

Get Signature

get abstract selectedBlockModels(): BlockModel<object, SignaledProps<object>>[]

Returns

BlockModel<object, SignaledProps<object>>[]

Defined in

packages/blocks/src/root-block/configs/toolbar.ts:15


std

Get Signature

get abstract std(): BlockStdScope

Returns

BlockStdScope

Defined in

packages/blocks/src/root-block/configs/toolbar.ts:17

Methods

close()

close(): void

Returns

void

Defined in

packages/blocks/src/root-block/configs/toolbar.ts:20


isElement()

isElement(): boolean

Returns

boolean

Defined in

packages/blocks/src/root-block/configs/toolbar.ts:22


isEmpty()

abstract isEmpty(): boolean

Returns

boolean

Defined in

packages/blocks/src/root-block/configs/toolbar.ts:26


isMultiple()

abstract isMultiple(): boolean

Returns

boolean

Defined in

packages/blocks/src/root-block/configs/toolbar.ts:28


isSingle()

abstract isSingle(): boolean

Returns

boolean

Defined in

packages/blocks/src/root-block/configs/toolbar.ts:30