Class: FSubmenu
Defined in: submodules/univer/packages/ui/src/facade/f-menu-builder.ts:148
FBase
is a base class for all facade classes.
It provides a way to extend classes with static and instance methods.
The _initialize
as a special method that will be called after the constructor. You should never call it directly.
Extends
Constructors
new FSubmenu()
new FSubmenu(
_item,
_injector,
_menuManagerService): FSubmenu
Defined in: submodules/univer/packages/ui/src/facade/f-menu-builder.ts:157
Parameters
Parameter | Type |
---|---|
_item | IFacadeSubmenuItem |
_injector | Injector |
_menuManagerService | IMenuManagerService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_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:159 |
_menuManagerService | readonly | IMenuManagerService | undefined | - | submodules/univer/packages/ui/src/facade/f-menu-builder.ts:160 |
Methods
addSeparator()
addSeparator(): this
Defined in: submodules/univer/packages/ui/src/facade/f-menu-builder.ts:194
Add a separator to the submenu.
Returns
this
The FSubmenu itself for chaining calls.
addSubmenu()
addSubmenu(submenu): this
Defined in: submodules/univer/packages/ui/src/facade/f-menu-builder.ts:185
Add a menu to the submenu. It can be a FMenu or a FSubmenu.
Parameters
Parameter | Type | Description |
---|---|---|
submenu | FMenu | FSubmenu | Menu to add to the submenu. |
Returns
this
The FSubmenu itself for chaining calls.
appendTo()
appendTo(path): void
Defined in: submodules/univer/packages/ui/src/facade/f-menu-builder.ts:204
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