@univerjsuifacadeclassesFhookssheetsmixin

@univerjs/ui v0.5.1Docs


Class: FHooksSheetsMixin

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

Implements

Constructors

new FHooksSheetsMixin()

new FHooksSheetsMixin(_injector, _lifecycleService): FHooksSheetsMixin

Parameters

ParameterType
_injectorInjector
_lifecycleServiceLifecycleService

Returns

FHooksSheetsMixin

Inherited from

FHooks.constructor

Defined in

submodules/univer/packages/core/src/facade/f-hooks.ts:29

Properties

PropertyModifierTypeInherited fromDefined in
_injectorreadonlyInjectorFHooks._injectorsubmodules/univer/packages/core/src/facade/f-hooks.ts:30

Methods

_initialize()

_initialize(): void

Returns

void

Inherited from

FHooks._initialize

Defined in

submodules/univer/packages/core/src/facade/f-base.ts:33


onBeforeCopy()

onBeforeCopy(callback): IDisposable

The onBeforeCopy event is fired before a copy operation is performed.

Parameters

ParameterTypeDescription
callback() => voidCallback function that will be called when the event is fired

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Implementation of

IFHooksSheetsUIMixin.onBeforeCopy

Overrides

FHooks.onBeforeCopy

Defined in

submodules/univer/packages/ui/src/facade/f-hooks.ts:59


onBeforePaste()

onBeforePaste(callback): IDisposable

The onBeforeCopy event is fired before a copy operation is performed.

Parameters

ParameterTypeDescription
callback() => voidCallback function that will be called when the event is fired

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Implementation of

IFHooksSheetsUIMixin.onBeforePaste

Overrides

FHooks.onBeforePaste

Defined in

submodules/univer/packages/ui/src/facade/f-hooks.ts:79


onBeforeRedo()

onBeforeRedo(callback): IDisposable

Hook that fires before a redo operation is executed.

Parameters

ParameterTypeDescription
callback(action) => voidFunction to be called when the event is triggered

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Inherited from

FHooks.onBeforeRedo

Defined in

submodules/univer/packages/core/src/facade/f-hooks.ts:115


onBeforeUndo()

onBeforeUndo(callback): IDisposable

Hook that fires before an undo operation is executed.

Parameters

ParameterTypeDescription
callback(action) => voidFunction to be called when the event is triggered

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Inherited from

FHooks.onBeforeUndo

Defined in

submodules/univer/packages/core/src/facade/f-hooks.ts:77


onCopy()

onCopy(callback): IDisposable

The onCopy event is fired after a copy operation is performed.

Parameters

ParameterTypeDescription
callback() => voidCallback function that will be called when the event is fired

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Implementation of

IFHooksSheetsUIMixin.onCopy

Overrides

FHooks.onCopy

Defined in

submodules/univer/packages/ui/src/facade/f-hooks.ts:69


onPaste()

onPaste(callback): IDisposable

The onPaste event is fired after a paste operation is performed.

Parameters

ParameterTypeDescription
callback() => voidCallback function that will be called when the event is fired

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Implementation of

IFHooksSheetsUIMixin.onPaste

Overrides

FHooks.onPaste

Defined in

submodules/univer/packages/ui/src/facade/f-hooks.ts:89


onReady()

onReady(callback): IDisposable

The onReady event is fired when lifecycle stage is Ready.

Parameters

ParameterTypeDescription
callback() => voidCallback function that will be called when the event is fired

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Inherited from

FHooks.onReady

Defined in

submodules/univer/packages/core/src/facade/f-hooks.ts:50


onRedo()

onRedo(callback): IDisposable

Hook that fires after a redo operation is executed.

Parameters

ParameterTypeDescription
callback(action) => voidFunction to be called when the event is triggered

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Inherited from

FHooks.onRedo

Defined in

submodules/univer/packages/core/src/facade/f-hooks.ts:134


onRendered()

onRendered(callback): IDisposable

The onRendered event is fired when lifecycle stage is Rendered.

Parameters

ParameterTypeDescription
callback() => voidCallback function that will be called when the event is fired

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Inherited from

FHooks.onRendered

Defined in

submodules/univer/packages/core/src/facade/f-hooks.ts:59


onStarting()

onStarting(callback): IDisposable

The onStarting event is fired when lifecycle stage is Starting.

Parameters

ParameterTypeDescription
callback() => voidCallback function that will be called when the event is fired

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Inherited from

FHooks.onStarting

Defined in

submodules/univer/packages/core/src/facade/f-hooks.ts:41


onSteady()

onSteady(callback): IDisposable

The onSteady event is fired when lifecycle stage is Steady.

Parameters

ParameterTypeDescription
callback() => voidCallback function that will be called when the event is fired

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Inherited from

FHooks.onSteady

Defined in

submodules/univer/packages/core/src/facade/f-hooks.ts:68


onUndo()

onUndo(callback): IDisposable

Hook that fires after an undo operation is executed.

Parameters

ParameterTypeDescription
callback(action) => voidFunction to be called when the event is triggered

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Inherited from

FHooks.onUndo

Defined in

submodules/univer/packages/core/src/facade/f-hooks.ts:96


extend()

static extend(source): void

Parameters

ParameterType
sourceany

Returns

void

Inherited from

FHooks.extend

Defined in

submodules/univer/packages/core/src/facade/f-base.ts:35