API Reference
@univerjs
@univerjs/ui
interfaces
Icontextmenuhandler

@univerjs/ui v0.4.2Docs


Interface: IContextMenuHandler

Accessors

visible

get visible(): boolean

Returns

boolean

Defined in

packages/ui/src/services/contextmenu/contextmenu.service.ts:26 (opens in a new tab)

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

packages/ui/src/services/contextmenu/contextmenu.service.ts:23 (opens in a new tab)


hideContextMenu()

hideContextMenu(): void

Returns

void

Defined in

packages/ui/src/services/contextmenu/contextmenu.service.ts:24 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.