@univerjs/facade v0.4.2 • Docs
Class: FSheetHooks
Constructors
new FSheetHooks()
new FSheetHooks(
_hoverManagerService,
_dragManagerService,
_commandService,
_injector): FSheetHooks
Parameters
Parameter | Type |
---|---|
_hoverManagerService | HoverManagerService |
_dragManagerService | DragManagerService |
_commandService | ICommandService |
_injector | Injector |
Returns
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
Parameter | Type | Description |
---|---|---|
callback | (cellPos ) => 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
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
Parameter | Type | Description |
---|---|---|
callback | (cellPos ) => 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
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
Parameter | Type | Description |
---|---|---|
callback | (cellPos ) => 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
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
Parameter | Type | Description |
---|---|---|
callback | (cellPos ) => 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
Defined in
submodules/univer/packages/facade/src/apis/sheets/f-sheet-hooks.ts:47 (opens in a new tab)