angular / angular/components

virtual-scroll: allow setting the scrolled-to index

未关闭
#10,116 6 条评论 16 个 reaction 已指派 0 人 在 GitHub 查看
area: cdk/scrolling feature P3
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

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.

贡献指南

打开贡献指南

调研方向

首先定位虚拟滚动容器的入口点,并了解当前 viewport 索引是如何管理的。跟踪数据加载路径,以了解如何保留一个超出已加载数据范围的请求索引。完成标准是开发者可以设置第一个可见索引,并且容器会在所需数据加载完成后滚动到该索引。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
frontend
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。