@univerjs/ui v0.4.2 • Docs
Interface: IContextMenuService
Properties
Property | Type | Defined in |
---|---|---|
disabled | boolean | packages/ui/src/services/contextmenu/contextmenu.service.ts:30 (opens in a new tab) |
Accessors
visible
get visible(): boolean
Returns
boolean
Defined in
packages/ui/src/services/contextmenu/contextmenu.service.ts:31 (opens in a new tab)
Methods
disable()
disable(): void
Returns
void
Defined in
packages/ui/src/services/contextmenu/contextmenu.service.ts:34 (opens in a new tab)
enable()
enable(): void
Returns
void
Defined in
packages/ui/src/services/contextmenu/contextmenu.service.ts:33 (opens in a new tab)
hideContextMenu()
hideContextMenu(): void
Returns
void
Defined in
packages/ui/src/services/contextmenu/contextmenu.service.ts:36 (opens in a new tab)
registerContextMenuHandler()
registerContextMenuHandler(handler): IDisposable
Parameters
Parameter | Type |
---|---|
handler | IContextMenuHandler |
Returns
Defined in
packages/ui/src/services/contextmenu/contextmenu.service.ts:38 (opens in a new tab)
triggerContextMenu()
triggerContextMenu(event, menuType): void
Parameters
Parameter | Type |
---|---|
event | IMouseEvent | IPointerEvent |
menuType | string |
Returns
void
Defined in
packages/ui/src/services/contextmenu/contextmenu.service.ts:35 (opens in a new tab)