@univerjs/ui v0.5.0-beta.1 • Docs
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
Parameter | Type |
---|---|
event | IMouseEvent | IPointerEvent |
menuType | string |
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