@univerjs/ui v0.5.1 • Docs
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
Parameter | Type |
---|---|
_injector | Injector |
_lifecycleService | LifecycleService |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/facade/f-hooks.ts:29
Properties
Property | Modifier | Type | Inherited from | Defined in |
---|---|---|---|---|
_injector | readonly | Injector | FHooks ._injector | submodules/univer/packages/core/src/facade/f-hooks.ts:30 |
Methods
_initialize()
_initialize(): void
Returns
void
Inherited from
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
Parameter | Type | Description |
---|---|---|
callback | () => void | Callback function that will be called when the event is fired |
Returns
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
Parameter | Type | Description |
---|---|---|
callback | () => void | Callback function that will be called when the event is fired |
Returns
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
Parameter | Type | Description |
---|---|---|
callback | (action ) => void | Function to be called when the event is triggered |
Returns
A disposable object that can be used to unsubscribe from the event
Inherited from
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
Parameter | Type | Description |
---|---|---|
callback | (action ) => void | Function to be called when the event is triggered |
Returns
A disposable object that can be used to unsubscribe from the event
Inherited from
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
Parameter | Type | Description |
---|---|---|
callback | () => void | Callback function that will be called when the event is fired |
Returns
A disposable object that can be used to unsubscribe from the event
Implementation of
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
Parameter | Type | Description |
---|---|---|
callback | () => void | Callback function that will be called when the event is fired |
Returns
A disposable object that can be used to unsubscribe from the event
Implementation of
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
Parameter | Type | Description |
---|---|---|
callback | () => void | Callback function that will be called when the event is fired |
Returns
A disposable object that can be used to unsubscribe from the event
Inherited from
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
Parameter | Type | Description |
---|---|---|
callback | (action ) => void | Function to be called when the event is triggered |
Returns
A disposable object that can be used to unsubscribe from the event
Inherited from
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
Parameter | Type | Description |
---|---|---|
callback | () => void | Callback function that will be called when the event is fired |
Returns
A disposable object that can be used to unsubscribe from the event
Inherited from
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
Parameter | Type | Description |
---|---|---|
callback | () => void | Callback function that will be called when the event is fired |
Returns
A disposable object that can be used to unsubscribe from the event
Inherited from
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
Parameter | Type | Description |
---|---|---|
callback | () => void | Callback function that will be called when the event is fired |
Returns
A disposable object that can be used to unsubscribe from the event
Inherited from
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
Parameter | Type | Description |
---|---|---|
callback | (action ) => void | Function to be called when the event is triggered |
Returns
A disposable object that can be used to unsubscribe from the event
Inherited from
Defined in
submodules/univer/packages/core/src/facade/f-hooks.ts:96
extend()
static extend(source): void
Parameters
Parameter | Type |
---|---|
source | any |
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/facade/f-base.ts:35