Class: FMenu
Defined in: submodules/univer/packages/ui/src/facade/f-menu-builder.ts:80
This is a build for adding a menu to Univer. Please notice that until the appendTo
method is called,
the menu item is not added to the UI. Please note that this menu cannot have submenus. If you want to
have submenus, please use FSubmenu
.
Extends
Constructors
new FMenu()
new FMenu(
_item,
_injector,
_commandService,
_menuManagerService): FMenu
Defined in: submodules/univer/packages/ui/src/facade/f-menu-builder.ts:91
Parameters
Parameter | Type |
---|---|
_item | IFacadeMenuItem |
_injector | Injector |
_commandService | ICommandService |
_menuManagerService | IMenuManagerService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_commandService | readonly | ICommandService | undefined | - | submodules/univer/packages/ui/src/facade/f-menu-builder.ts:94 |
_disposed | protected | boolean | false | FBase ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
_injector | readonly | Injector | undefined | - | submodules/univer/packages/ui/src/facade/f-menu-builder.ts:93 |
_menuManagerService | readonly | IMenuManagerService | undefined | - | submodules/univer/packages/ui/src/facade/f-menu-builder.ts:95 |
MenuManagerPosition | static | typeof MenuManagerPosition | MenuManagerPosition | - | submodules/univer/packages/ui/src/facade/f-menu-builder.ts:83 |
RibbonPosition | static | typeof RibbonPosition | RibbonPosition | - | submodules/univer/packages/ui/src/facade/f-menu-builder.ts:82 |
RibbonStartGroup | static | typeof RibbonStartGroup | RibbonStartGroup | - | submodules/univer/packages/ui/src/facade/f-menu-builder.ts:81 |
Methods
appendTo()
appendTo(path): void
Defined in: submodules/univer/packages/ui/src/facade/f-menu-builder.ts:140
Append the menu to any menu position on Univer UI.
Parameters
Parameter | Type | Description |
---|---|---|
path | string | Some predefined path to append the menu. |
Returns
void
dispose()
dispose(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109
Returns
void
Inherited from
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
extend()
static extend(source): void
Defined in: submodules/univer/packages/core/src/facade/f-base.ts:26
Parameters
Parameter | Type |
---|---|
source | any |
Returns
void