@univerjsuiindexclassesContextmenuservice

@univerjs/ui v0.5.4


Class: ContextMenuService

Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:43

Extends

Implements

Constructors

new ContextMenuService()

new ContextMenuService(): ContextMenuService

Returns

ContextMenuService

Inherited from

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
disabledpublicbooleanfalse-submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:46

Accessors

visible

Get Signature

get visible(): boolean

Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:48

Returns

boolean

Implementation of

IContextMenuService.visible

Methods

disable()

disable(): void

Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:52

Returns

void

Implementation of

IContextMenuService.disable


dispose()

dispose(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


enable()

enable(): void

Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:56

Returns

void

Implementation of

IContextMenuService.enable


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


hideContextMenu()

hideContextMenu(): void

Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:67

Returns

void

Implementation of

IContextMenuService.hideContextMenu


registerContextMenuHandler()

registerContextMenuHandler(handler): IDisposable

Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:71

Parameters

ParameterType
handlerIContextMenuHandler

Returns

IDisposable

Implementation of

IContextMenuService.registerContextMenuHandler


triggerContextMenu()

triggerContextMenu(event, menuType): void

Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:60

Parameters

ParameterType
event| IMouseEvent | IPointerEvent
menuTypestring

Returns

void

Implementation of

IContextMenuService.triggerContextMenu