@univerjsuiindexinterfacesIcontextmenuservice

@univerjs/ui v0.5.4


Interface: IContextMenuService

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

Properties

PropertyTypeDefined in
disabledbooleansubmodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:30

Accessors

visible

Get Signature

get visible(): boolean

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

Returns

boolean

Methods

disable()

disable(): void

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

Returns

void


enable()

enable(): void

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

Returns

void


hideContextMenu()

hideContextMenu(): void

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

Returns

void


registerContextMenuHandler()

registerContextMenuHandler(handler): IDisposable

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

Parameters

ParameterType
handlerIContextMenuHandler

Returns

IDisposable


triggerContextMenu()

triggerContextMenu(event, menuType): void

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

Parameters

ParameterType
event| IMouseEvent | IPointerEvent
menuTypestring

Returns

void