@univerjs/ui v0.4.2 • Docs
Class: SharedController
Define shared UI behavior across Univer business. Including undo / redo and clipboard operations.
Extends
Constructors
new SharedController()
new SharedController(_shortcutService, _commandService): SharedController
Parameters
Parameter | Type |
---|---|
_shortcutService | IShortcutService |
_commandService | ICommandService |
Returns
Overrides
Defined in
packages/ui/src/controllers/shared-shortcut.controller.ts:91 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
Methods
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)
initialize()
initialize(): void
Returns
void
Defined in
packages/ui/src/controllers/shared-shortcut.controller.ts:100 (opens in a new tab)