angular / angular/components

virtual-scroll: allow setting the scrolled-to index

Open
#10,116 6 comments 16 reactions 0 assignees View on GitHub
area: cdk/scrolling feature P3
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

Add an input to the virtual scroll container that allows developers to set the index of the first element that should be visible in the viewport.

We should also allow specifying an index that is greater than the length of the currently loaded data. Once the data loads we can scroll to the specified index.

Contributor guide

Open the contributing guide

Research direction

Start by locating the virtual scroll container entry point and how its current viewport index is managed. Trace the data-loading path to understand how a requested index beyond the loaded data could be retained. Done means developers can set the first visible index and the container scrolls to that index once the required data loads.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.