Class: SheetsScrollRenderController
Defined in: submodules/univer/packages/sheets-ui/src/controllers/render-controllers/scroll.render-controller.ts:50
This controller handles scroll logic in sheet interaction.
Extends
Implements
Constructors
new SheetsScrollRenderController()
new SheetsScrollRenderController(
_context,
_injector,
_sheetSkeletonManagerService,
_contextService,
_commandService,
_renderManagerService,
_scrollManagerService): SheetsScrollRenderController
Defined in: submodules/univer/packages/sheets-ui/src/controllers/render-controllers/scroll.render-controller.ts:51
Parameters
Parameter | Type |
---|---|
_context | IRenderContext <Workbook > |
_injector | Injector |
_sheetSkeletonManagerService | SheetSkeletonManagerService |
_contextService | IContextService |
_commandService | ICommandService |
_renderManagerService | IRenderManagerService |
_scrollManagerService | SheetScrollManagerService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
Methods
dispose()
dispose(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109
Returns
void
Implementation of
Inherited from
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
scrollToCell()
scrollToCell(row, column): boolean
Defined in: submodules/univer/packages/sheets-ui/src/controllers/render-controllers/scroll.render-controller.ts:292
Scroll spreadsheet(viewMain) to cell position. Based on the limitations of viewport and the number of rows and columns, you can only scroll to the maximum scrollable range.
if column A ~ B is frozen. set second param to 0 would make viewMain start at column C. set second param to 2 would make viewMain start at column E.
Parameters
Parameter | Type | Description |
---|---|---|
row | number | Cell row |
column | number | Cell column |
Returns
boolean
- true if scroll is successful
scrollToRange()
scrollToRange(
range,
forceTop?,
forceLeft?): boolean
Defined in: submodules/univer/packages/sheets-ui/src/controllers/render-controllers/scroll.render-controller.ts:263
Parameters
Parameter | Type |
---|---|
range | IRange |
forceTop ? | boolean |
forceLeft ? | boolean |
Returns
boolean