feature(CdkVirtualScrollViewport): allow to scroll to center. method: scrollToIndex
Open
area: cdk/scrolling
feature
P3
- Dominant language
- TypeScript
- Stars
- 25k
- Forks
- 6.8k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 91
Description
#### Feature Description
Allow scrolling to index and center the position.
method: scrollToIndex
component: CdkVirtualScrollViewport
#### Use Case
Scroll into view and center an item.
ex: see HTML scrollToIndex options:
{
behavior: "auto",
block: "center",
inline: "center",
}
Contributor guide
Research direction
Begin with CdkVirtualScrollViewport and its scrollToIndex method. Inspect how index scrolling currently works, then define completion as allowing the requested item to be positioned in the center, consistent with the proposed scroll options.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100