-
Notifications
You must be signed in to change notification settings - Fork 6.8k
adds virtual scroll adapter #14287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adds virtual scroll adapter #14287
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
I signed it! |
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
I signed it! |
a08d922
to
f326ec6
Compare
CLAs look good, thanks! |
It seems that CI check fail for a reason independant of my modifications.
Is there someone looking at the PR even if the checks fail ? |
Related to this attack of some days ago: That package was malicious code and has been removed from the registry |
We've fixed this issue with #14295. If you rebase your PR, the tests should run as you would expect. |
Thank you @IlCallo for the info. |
As dev said, you should fetch from upstream, rebase and force push. Some useful instructions are written into CONTRIBUTING file, I think |
pull from angular master
pull angular master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mmalerba I don't think I have a better name for the adapter. I was thinking about CdkVirtualScrollDataSource
, but that could be confused with the ones on table and tree.
@@ -14,3 +14,4 @@ export * from './viewport-ruler'; | |||
export * from './virtual-for-of'; | |||
export * from './virtual-scroll-strategy'; | |||
export * from './virtual-scroll-viewport'; | |||
export * from './virtual-scroll-adapter'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs an extra newline at the end of the file.
import {Observable} from 'rxjs'; | ||
import {ListRange} from '../collections'; | ||
|
||
export interface CdkVirtualScrollAdapter<T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs some docs explaining what it does and what it's useful for.
import {ListRange} from '../collections'; | ||
|
||
export interface CdkVirtualScrollAdapter<T> { | ||
dataStream: Observable<T[] | ReadonlyArray<T>>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mmalerba shouldn't we call this a dataSource
for consistency with some of the other components?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this is different than the dataSource
, in the case of cdkVirtualForOf
this stream is created by connecting to the data source, but it doesn't have to be.
import {Observable} from 'rxjs'; | ||
import {ListRange} from '../collections'; | ||
|
||
export interface CdkVirtualScrollAdapter<T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about CdkVirtualScrollRepeater
?
How are you doing on this request? I need this feature )) |
Will this pull request help with #13862 and if so is there any timeline to get this in? |
@ben-henoida thank you for making your first contribution with this PR. Can you please address some of the review feedback above? Please let us know if you run into any issues or have questions about how to do that. |
Closing due to inactivity |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
As discussed in #10122
I order to integrate virtual scroll into mat table we need to decouple CdkVirtualScrollViewport from CdkVirtualForOf
This modification introduces an adapter between the 2 classes, so users can provide their own version of
CdkVirtualScrollAdapter
suggested by @shlomiassaf,