@univerjs/ui v0.5.4


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

ParameterType
_itemIFacadeSubmenuItem
_injectorInjector
_menuManagerServiceIMenuManagerService

Returns

FSubmenu

Overrides

FBase.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseFBase._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
_injectorreadonlyInjectorundefined-submodules/univer/packages/ui/src/facade/f-menu-builder.ts:159
_menuManagerServicereadonlyIMenuManagerServiceundefined-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

ParameterTypeDescription
submenuFMenu | FSubmenuMenu 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

ParameterTypeDescription
pathstringSome 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

FBase.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

FBase.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

FBase.ensureNotDisposed


extend()

static extend(source): void

Defined in: submodules/univer/packages/core/src/facade/f-base.ts:26

Parameters

ParameterType
sourceany

Returns

void

Inherited from

FBase.extend