Skip to Content
ClassesFHooks

类: FHooks

继承

  • FBase.IFHooksSheetsUIMixin

方法

onBeforeCopy()

onBeforeCopy(callback): IDisposable

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

参数

参数类型描述
callback() => voidCallback function that will be called when the event is fired

返回

IDisposable

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


onBeforePaste()

调用签名

onBeforePaste(callback): IDisposable

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

参数
参数类型描述
callback() => voidCallback function that will be called when the event is fired
返回

IDisposable

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

调用签名

onBeforePaste(callback): IDisposable

The onBeforePaste event is fired before a paste operation is performed.

参数
参数类型描述
callback() => voidCallback function that will be called when the event is fired
返回

IDisposable

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


onBeforeRedo()

onBeforeRedo(callback): IDisposable

参数

参数类型描述
callback(action) => void

返回

IDisposable

已被弃用

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


onBeforeUndo()

onBeforeUndo(callback): IDisposable

参数

参数类型描述
callback(action) => void

返回

IDisposable

已被弃用

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


onCopy()

onCopy(callback): IDisposable

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

参数

参数类型描述
callback() => voidCallback function that will be called when the event is fired

返回

IDisposable

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


onPaste()

onPaste(callback): IDisposable

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

参数

参数类型描述
callback() => voidCallback function that will be called when the event is fired

返回

IDisposable

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


onReady()

onReady(callback): IDisposable

参数

参数类型描述
callback() => void

返回

IDisposable

已被弃用

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


onRedo()

onRedo(callback): IDisposable

参数

参数类型描述
callback(action) => void

返回

IDisposable

已被弃用

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


onRendered()

onRendered(callback): IDisposable

参数

参数类型描述
callback() => void

返回

IDisposable

已被弃用

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


onStarting()

onStarting(callback): IDisposable

参数

参数类型描述
callback() => void

返回

IDisposable

已被弃用

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


onSteady()

onSteady(callback): IDisposable

参数

参数类型描述
callback() => void

返回

IDisposable

已被弃用

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


onUndo()

onUndo(callback): IDisposable

参数

参数类型描述
callback(action) => void

返回

IDisposable

已被弃用

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