Class: MenuManagerService
Defined in: submodules/univer/packages/ui/src/services/menu/menu-manager.service.ts:51
Extends
Implements
Constructors
new MenuManagerService()
new MenuManagerService(_injector, _configService): MenuManagerService
Defined in: submodules/univer/packages/ui/src/services/menu/menu-manager.service.ts:181
Parameters
Parameter | Type |
---|---|
_injector | Injector |
_configService | IConfigService |
Returns
Overrides
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 |
menuChanged$ | readonly | Subject <void > | undefined | - | submodules/univer/packages/ui/src/services/menu/menu-manager.service.ts:52 |
Methods
appendRootMenu()
appendRootMenu(source): void
Defined in: submodules/univer/packages/ui/src/services/menu/menu-manager.service.ts:212
Parameters
Parameter | Type |
---|---|
source | MenuSchemaType |
Returns
void
Implementation of
IMenuManagerService
.appendRootMenu
dispose()
dispose(): void
Defined in: submodules/univer/packages/ui/src/services/menu/menu-manager.service.ts:188
Returns
void
Overrides
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getMenuByPositionKey()
getMenuByPositionKey(key): IMenuSchema[]
Defined in: submodules/univer/packages/ui/src/services/menu/menu-manager.service.ts:259
Get menu schema by position key
Parameters
Parameter | Type |
---|---|
key | string |
Returns
Menu schema array or empty array if not found
Implementation of
IMenuManagerService
.getMenuByPositionKey
mergeMenu()
mergeMenu(source, target?): void
Defined in: submodules/univer/packages/ui/src/services/menu/menu-manager.service.ts:197
Merge source menu to target menu recursively
Parameters
Parameter | Type | Description |
---|---|---|
source | MenuSchemaType | - |
target ? | MenuSchemaType | default is root menu |
Returns
void