@univerjsuiindexinterfacesIcontextmenuhandler

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


Interface: IContextMenuHandler

Accessors

visible

Get Signature

get visible(): boolean
Returns

boolean

Defined in

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

Methods

handleContextMenu()

handleContextMenu(event, menuType): void

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

Parameters

ParameterType
eventIMouseEvent | IPointerEvent
menuTypestring

Returns

void

Defined in

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


hideContextMenu()

hideContextMenu(): void

Returns

void

Defined in

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