@univerjs/ui v0.5.0-beta.1 • Docs
Interface: IContextMenuService
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
Returns
boolean
Defined in
submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:31
Methods
disable()
disable(): void
Returns
void
Defined in
submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:34
enable()
enable(): void
Returns
void
Defined in
submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:33
hideContextMenu()
hideContextMenu(): void
Returns
void
Defined in
submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:36
registerContextMenuHandler()
registerContextMenuHandler(handler): IDisposable
Parameters
Parameter | Type |
---|---|
handler | IContextMenuHandler |
Returns
Defined in
submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:38
triggerContextMenu()
triggerContextMenu(event, menuType): void
Parameters
Parameter | Type |
---|---|
event | IMouseEvent | IPointerEvent |
menuType | string |
Returns
void
Defined in
submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:35