API Reference
@univerjs
@univerjs/facade
classes
Fsheethooks

@univerjs/facade v0.2.14Docs


Class: FSheetHooks

Constructors

new FSheetHooks()

new FSheetHooks(
   _hoverManagerService, 
   _dragManagerService, 
   _commandService, 
   _injector): FSheetHooks

Parameters

ParameterType
_hoverManagerServiceHoverManagerService
_dragManagerServiceDragManagerService
_commandServiceICommandService
_injectorInjector

Returns

FSheetHooks

Defined in

submodules/univer/packages/facade/src/apis/sheets/f-sheet-hooks.ts:24 (opens in a new tab)

Methods

onCellDragOver()

onCellDragOver(callback): IDisposable

The onCellDragOver event is fired when an element or text selection is being dragged into a cell's hit test boundaries.

Parameters

ParameterTypeDescription
callback(cellPos) => 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/facade/src/apis/sheets/f-sheet-hooks.ts:56 (opens in a new tab)


onCellDrop()

onCellDrop(callback): IDisposable

The onCellDrop event is fired when an element or text selection is being dropped on the cell.

Parameters

ParameterTypeDescription
callback(cellPos) => 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/facade/src/apis/sheets/f-sheet-hooks.ts:65 (opens in a new tab)


onCellPointerMove()

onCellPointerMove(callback): IDisposable

The onCellPointerMove event is fired when a pointer changes coordinates.

Parameters

ParameterTypeDescription
callback(cellPos) => 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/facade/src/apis/sheets/f-sheet-hooks.ts:38 (opens in a new tab)


onCellPointerOver()

onCellPointerOver(callback): IDisposable

The onCellPointerOver event is fired when a pointer is moved into a cell's hit test boundaries.

Parameters

ParameterTypeDescription
callback(cellPos) => 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/facade/src/apis/sheets/f-sheet-hooks.ts:47 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.