API Reference
@univerjs
@univerjs/ui
interfaces
Icontextmenuservice

@univerjs/ui v0.4.2Docs


Interface: IContextMenuService

Properties

PropertyTypeDefined in
disabledbooleanpackages/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

ParameterType
handlerIContextMenuHandler

Returns

IDisposable

Defined in

packages/ui/src/services/contextmenu/contextmenu.service.ts:38 (opens in a new tab)


triggerContextMenu()

triggerContextMenu(event, menuType): void

Parameters

ParameterType
eventIMouseEvent | IPointerEvent
menuTypestring

Returns

void

Defined in

packages/ui/src/services/contextmenu/contextmenu.service.ts:35 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.