API Reference
@univerjs
@univerjs/ui
interfaces
Imenuservice

@univerjs/ui v0.4.2Docs


Interface: IMenuService

Breaking changes to IMenuService are expected in the next version. Use with caution. by

Jikkai

Deprecated

Properties

PropertyTypeDefined in
menuChanged$Observable<void>packages/ui/src/services/menu/menu.service.ts:37 (opens in a new tab)

Methods

addMenuItem()

addMenuItem(item, config): IDisposable

Parameters

ParameterType
itemIMenuItem
configMenuConfig

Returns

IDisposable

Deprecated

Defined in

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


getMenuItem()

getMenuItem(id): null | IMenuItem

Parameters

ParameterType
idstring

Returns

null | IMenuItem

Deprecated

Defined in

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


getMenuItems()

getMenuItems(position): IDisplayMenuItem<IMenuItem>[]

Parameters

ParameterType
positionstring

Returns

IDisplayMenuItem<IMenuItem>[]

Deprecated

Defined in

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


setMenuItem()

setMenuItem(item): void

Parameters

ParameterType
itemIMenuItem

Returns

void

Deprecated

Defined in

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


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