@univerjsuiindexinterfacesImenumanagerservice

@univerjs/ui v0.5.0-beta.1Docs


Interface: IMenuManagerService

Properties

PropertyModifierTypeDefined in
menuChanged$readonlyObservable<void>submodules/univer/packages/ui/src/services/menu/menu-manager.service.ts:35

Methods

appendRootMenu()

appendRootMenu(source): void

Parameters

ParameterType
sourceMenuSchemaType

Returns

void

Defined in

submodules/univer/packages/ui/src/services/menu/menu-manager.service.ts:39


getMenuByPositionKey()

getMenuByPositionKey(position): IMenuSchema[]

Parameters

ParameterType
positionstring

Returns

IMenuSchema[]

Defined in

submodules/univer/packages/ui/src/services/menu/menu-manager.service.ts:41


mergeMenu()

mergeMenu(source, target?): void

Parameters

ParameterType
sourceMenuSchemaType
target?MenuSchemaType

Returns

void

Defined in

submodules/univer/packages/ui/src/services/menu/menu-manager.service.ts:37