Skip to content

[FEATURE]: Scrolling support #635

@spike-rabbit

Description

@spike-rabbit

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:

  1. `scrollToRow(row: TRow, behavior?: ScrollBehavior): void
  2. `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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions