Class: FHooks
Extends
FBase
.IFHooksSheetsUIMixin
Methods
onBeforeCopy()
onBeforeCopy(callback): IDisposable
The onBeforeCopy event is fired before a copy operation is performed.
Parameters
Parameter | Type | Description |
---|---|---|
callback | () => void | Callback function that will be called when the event is fired |
Returns
IDisposable
A disposable object that can be used to unsubscribe from the event
onBeforePaste()
Call Signature
onBeforePaste(callback): IDisposable
The onBeforeCopy event is fired before a copy operation is performed.
Parameters
Parameter | Type | Description |
---|---|---|
callback | () => void | Callback function that will be called when the event is fired |
Returns
IDisposable
A disposable object that can be used to unsubscribe from the event
Call Signature
onBeforePaste(callback): IDisposable
The onBeforePaste event is fired before a paste operation is performed.
Parameters
Parameter | Type | Description |
---|---|---|
callback | () => void | Callback function that will be called when the event is fired |
Returns
IDisposable
A disposable object that can be used to unsubscribe from the event
onBeforeRedo()
onBeforeRedo(callback): IDisposable
Parameters
Parameter | Type |
---|---|
callback | (action ) => void |
Returns
IDisposable
Deprecated
use univerAPI.addEvent(univerAPI.Event.BeforeRedo, () => {})
as instead
onBeforeUndo()
onBeforeUndo(callback): IDisposable
Parameters
Parameter | Type |
---|---|
callback | (action ) => void |
Returns
IDisposable
Deprecated
use univerAPI.addEvent(univerAPI.Event.BeforeUndo, () => {})
as instead
onCopy()
onCopy(callback): IDisposable
The onCopy event is fired after a copy operation is performed.
Parameters
Parameter | Type | Description |
---|---|---|
callback | () => void | Callback function that will be called when the event is fired |
Returns
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.
Parameters
Parameter | Type | Description |
---|---|---|
callback | () => void | Callback function that will be called when the event is fired |
Returns
IDisposable
A disposable object that can be used to unsubscribe from the event
onReady()
onReady(callback): IDisposable
Parameters
Parameter | Type |
---|---|
callback | () => void |
Returns
IDisposable
Deprecated
use univerAPI.addEvent(univerAPI.Event.LifecycleChanged)
as instead
onRedo()
onRedo(callback): IDisposable
Parameters
Parameter | Type |
---|---|
callback | (action ) => void |
Returns
IDisposable
Deprecated
use univerAPI.addEvent(univerAPI.Event.Redo, () => {})
as instead
onRendered()
onRendered(callback): IDisposable
Parameters
Parameter | Type |
---|---|
callback | () => void |
Returns
IDisposable
Deprecated
use univerAPI.addEvent(univerAPI.Event.LifecycleChanged, () => {})
as instead
onStarting()
onStarting(callback): IDisposable
Parameters
Parameter | Type |
---|---|
callback | () => void |
Returns
IDisposable
Deprecated
use univerAPI.addEvent(univerAPI.Event.LifecycleChanged)
as instead
onSteady()
onSteady(callback): IDisposable
Parameters
Parameter | Type |
---|---|
callback | () => void |
Returns
IDisposable
Deprecated
use univerAPI.addEvent(univerAPI.Event.LifecycleChanged, () => {})
as instead
onUndo()
onUndo(callback): IDisposable
Parameters
Parameter | Type |
---|---|
callback | (action ) => void |
Returns
IDisposable
Deprecated
use univerAPI.addEvent(univerAPI.Event.Undo, () => {})
as instead