@univerjsuiindexinterfacesIcontextmenuhandler

@univerjs/ui v0.5.4


Interface: IContextMenuHandler

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

Accessors

visible

Get Signature

get visible(): boolean

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

Returns

boolean

Methods

handleContextMenu()

handleContextMenu(event, menuType): void

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

A callback to open context menu with given position and menu type.

Parameters

ParameterType
event| IMouseEvent | IPointerEvent
menuTypestring

Returns

void


hideContextMenu()

hideContextMenu(): void

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

Returns

void