@univerjsuiindexclassesSharedcontroller

@univerjs/ui v0.5.4


Class: SharedController

Defined in: submodules/univer/packages/ui/src/controllers/shared-shortcut.controller.ts:96

Define shared UI behavior across Univer business. Including undo / redo and clipboard operations.

Extends

Constructors

new SharedController()

new SharedController(_shortcutService, _commandService): SharedController

Defined in: submodules/univer/packages/ui/src/controllers/shared-shortcut.controller.ts:97

Parameters

ParameterType
_shortcutServiceIShortcutService
_commandServiceICommandService

Returns

SharedController

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96

Methods

dispose()

dispose(): void

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

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

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

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

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

Returns

void

Inherited from

Disposable.ensureNotDisposed


initialize()

initialize(): void

Defined in: submodules/univer/packages/ui/src/controllers/shared-shortcut.controller.ts:106

Returns

void