@univerjsuifacadeinterfacesIfhookssheetsuimixin

@univerjs/ui v0.5.1Docs


Interface: 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

Defined in

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


onBeforePaste()

onBeforePaste(callback)

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

Defined in

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

onBeforePaste(callback)

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

Defined in

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


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

Defined in

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


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

Defined in

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