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