Skip to Content
ClassesFHooks

Class: FHooks

Extends

  • FBase.IFHooksSheetsUIMixin

Methods

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

Deprecated

use univerAPI.addEvent(univerAPI.Event.BeforeClipboardChange, (params) => {}) instead


onBeforePaste()

onBeforePaste(callback): IDisposable

The onBeforePaste event is fired before 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

Deprecated

use univerAPI.addEvent(univerAPI.Event.BeforeClipboardPaste, (params) => {}) instead


onBeforeRedo()

onBeforeRedo(callback): IDisposable

Parameters

ParameterTypeDescription
callback(action) => void

Returns

IDisposable

Deprecated

use univerAPI.addEvent(univerAPI.Event.BeforeRedo, (event) => {}) as instead


onBeforeUndo()

onBeforeUndo(callback): IDisposable

Parameters

ParameterTypeDescription
callback(action) => void

Returns

IDisposable

Deprecated

use univerAPI.addEvent(univerAPI.Event.BeforeUndo, (event) => {}) as instead


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

Deprecated

use univerAPI.addEvent(univerAPI.Event.ClipboardChanged, (params) => {}) instead


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

Deprecated

use univerAPI.addEvent(univerAPI.Event.ClipboardPasted, (params) => {}) instead


onReady()

onReady(callback): IDisposable

Parameters

ParameterTypeDescription
callback() => void

Returns

IDisposable

Deprecated

use univerAPI.addEvent(univerAPI.Event.LifeCycleChanged, ({ stage }) => {}) as instead


onRedo()

onRedo(callback): IDisposable

Parameters

ParameterTypeDescription
callback(action) => void

Returns

IDisposable

Deprecated

use univerAPI.addEvent(univerAPI.Event.Redo, (event) => {}) as instead


onRendered()

onRendered(callback): IDisposable

Parameters

ParameterTypeDescription
callback() => void

Returns

IDisposable

Deprecated

use univerAPI.addEvent(univerAPI.Event.LifeCycleChanged, ({ stage }) => {}) as instead


onStarting()

onStarting(callback): IDisposable

Parameters

ParameterTypeDescription
callback() => void

Returns

IDisposable

Deprecated

use univerAPI.addEvent(univerAPI.Event.LifeCycleChanged, ({ stage }) => {}) as instead


onSteady()

onSteady(callback): IDisposable

Parameters

ParameterTypeDescription
callback() => void

Returns

IDisposable

Deprecated

use univerAPI.addEvent(univerAPI.Event.LifeCycleChanged, ({ stage }) => {}) as instead


onUndo()

onUndo(callback): IDisposable

Parameters

ParameterTypeDescription
callback(action) => void

Returns

IDisposable

Deprecated

use univerAPI.addEvent(univerAPI.Event.Undo, (event) => {}) as instead