Motivation
With older versions it was possible to implement scrolling to a row, as we did not restrict our API.
This no longer works, so we need alternatives.
Proposed Solution
We need at least to functions to enable scrolling:
- `scrollToRow(row: TRow, behavior?: ScrollBehavior): void
- `scrollToIndex(index: index, behavior?: ScrollBehavior): void
We need at least those two for basic functionality:
scrollToRow is needed in client scenarios, as the table is maybe sorted, so an app does not know the index.
scrollToIndexis needed for lazy loading, if the row at the target index may not even exists yet.
I assume in order support scrolling in lazy loaded groups / trees, we may need even more.
If we implement all variants is questionable though.
Alternatives Considered
Just allowing consumer to call scrollTo on the scrolling element in the table.
Motivation
With older versions it was possible to implement scrolling to a row, as we did not restrict our API.
This no longer works, so we need alternatives.
Proposed Solution
We need at least to functions to enable scrolling:
We need at least those two for basic functionality:
scrollToRowis needed in client scenarios, as the table is maybe sorted, so an app does not know the index.scrollToIndexis needed for lazy loading, if the row at the target index may not even exists yet.I assume in order support scrolling in lazy loaded groups / trees, we may need even more.
If we implement all variants is questionable though.
Alternatives Considered
Just allowing consumer to call
scrollToon the scrolling element in the table.