Class: ContextMenuService
Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:43
Extends
Implements
Constructors
new ContextMenuService()
new ContextMenuService(): ContextMenuService
Returns
Inherited from
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
disabled | public | boolean | false | - | submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:46 |
Accessors
visible
Get Signature
get visible(): boolean
Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:48
Returns
boolean
Implementation of
Methods
disable()
disable(): void
Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:52
Returns
void
Implementation of
dispose()
dispose(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109
Returns
void
Inherited from
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
enable()
enable(): void
Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:56
Returns
void
Implementation of
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
hideContextMenu()
hideContextMenu(): void
Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:67
Returns
void
Implementation of
IContextMenuService
.hideContextMenu
registerContextMenuHandler()
registerContextMenuHandler(handler): IDisposable
Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:71
Parameters
Parameter | Type |
---|---|
handler | IContextMenuHandler |
Returns
Implementation of
IContextMenuService
.registerContextMenuHandler
triggerContextMenu()
triggerContextMenu(event, menuType): void
Defined in: submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:60
Parameters
Parameter | Type |
---|---|
event | | IMouseEvent | IPointerEvent |
menuType | string |
Returns
void