Interface: IContextMenuService
Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:29
Properties
Property | Type | Defined in |
---|---|---|
disabled | boolean | submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:30 |
Accessors
visible
Get Signature
get visible(): boolean
Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:31
Returns
boolean
Methods
disable()
disable(): void
Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:34
Returns
void
enable()
enable(): void
Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:33
Returns
void
hideContextMenu()
hideContextMenu(): void
Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:36
Returns
void
registerContextMenuHandler()
registerContextMenuHandler(handler): IDisposable
Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:38
Parameters
Parameter | Type |
---|---|
handler | IContextMenuHandler |
Returns
triggerContextMenu()
triggerContextMenu(event, menuType): void
Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:35
Parameters
Parameter | Type |
---|---|
event | | IMouseEvent | IPointerEvent |
menuType | string |
Returns
void