@univerjsuiindexinterfacesIcontextmenuservice

@univerjs/ui v0.5.0-beta.1Docs


Interface: IContextMenuService

Properties

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

Accessors

visible

Get Signature

get visible(): boolean
Returns

boolean

Defined in

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

Methods

disable()

disable(): void

Returns

void

Defined in

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


enable()

enable(): void

Returns

void

Defined in

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


hideContextMenu()

hideContextMenu(): void

Returns

void

Defined in

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


registerContextMenuHandler()

registerContextMenuHandler(handler): IDisposable

Parameters

ParameterType
handlerIContextMenuHandler

Returns

IDisposable

Defined in

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


triggerContextMenu()

triggerContextMenu(event, menuType): void

Parameters

ParameterType
eventIMouseEvent | IPointerEvent
menuTypestring

Returns

void

Defined in

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