forked from swimlane/ngx-datatable
-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request