@univerjs/ui v0.5.0-beta.1 • Docs
Class: ContextMenuService
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:93 |
disabled | public | boolean | false | - | submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:46 |
Accessors
visible
Get Signature
get visible(): boolean
Returns
boolean
Implementation of
Defined in
submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:48
Methods
disable()
disable(): void
Returns
void
Implementation of
Defined in
submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:52
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96
enable()
enable(): void
Returns
void
Implementation of
Defined in
submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:56
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100
hideContextMenu()
hideContextMenu(): void
Returns
void
Implementation of
IContextMenuService
.hideContextMenu
Defined in
submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:67
registerContextMenuHandler()
registerContextMenuHandler(handler): IDisposable
Parameters
Parameter | Type |
---|---|
handler | IContextMenuHandler |
Returns
Implementation of
IContextMenuService
.registerContextMenuHandler
Defined in
submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:71
triggerContextMenu()
triggerContextMenu(event, menuType): void
Parameters
Parameter | Type |
---|---|
event | IMouseEvent | IPointerEvent |
menuType | string |
Returns
void
Implementation of
IContextMenuService
.triggerContextMenu
Defined in
submodules/univer/packages/ui/src/services/contextmenu/contextmenu.service.ts:60